Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sim Library Improvements #116

Merged
merged 6 commits into from
Nov 21, 2024
Merged

Sim Library Improvements #116

merged 6 commits into from
Nov 21, 2024

Conversation

alik-git
Copy link
Contributor

  1. add an cmd line arg for the h5 file output dir

@@ -6,22 +6,31 @@
import h5py
import matplotlib.pyplot as plt
import numpy as np
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add the logic to the sim/produce_sim_data to use it as well

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

addressed in 6a65d01

sim/sim2sim.py Outdated
@@ -252,6 +252,7 @@ def run_mujoco(
"joint_pos": cur_pos_obs.astype(np.float32),
"joint_vel": cur_vel_obs.astype(np.float32),
"prev_actions": actions.astype(np.float32),
"curr_actions": target_q.astype(np.float32),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

current actions are actions listed below

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

addressed in df09d0d

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is wrong, you are now saving latest actions and positions (target_q which are scaled actions).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay should be fixed in 0eb70d3

i renamed actions to prev_actions since that is what it is being used as, and use curr_actions for the output of the model. at the end of the inner loop iteration, I set prev_actions = curr_actions.

@budzianowski budzianowski merged commit 54c40d5 into master Nov 21, 2024
1 check failed
@budzianowski budzianowski deleted the making_sim_data branch November 21, 2024 00:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants