Skip to content

Commit

Permalink
update aloha_mobile_object_to_cabinet
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkFzp committed Nov 27, 2023
1 parent de6a72a commit a510e87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion aloha_scripts/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
'aloha_mobile_object_to_cabinet':{
'dataset_dir': DATA_DIR + '/aloha_mobile_object_to_cabinet',
'num_episodes': 50,
'episode_len': 1700,
'episode_len': 1500,
'camera_names': ['cam_high', 'cam_left_wrist', 'cam_right_wrist']
},
'aloha_mobile_glass_to_cabinet':{
Expand Down
1 change: 1 addition & 0 deletions aloha_scripts/visualize_episodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def main(args):
dataset_name = f'episode_{episode_idx}'

qpos, qvel, effort, action, base_action, image_dict = load_hdf5(dataset_dir, dataset_name)
print('hdf5 loaded!!')
save_videos(image_dict, DT, video_path=os.path.join(dataset_dir, dataset_name + '_video.mp4'))
visualize_joints(qpos, action, plot_path=os.path.join(dataset_dir, dataset_name + '_qpos.png'))
# visualize_single(effort, 'effort', plot_path=os.path.join(dataset_dir, dataset_name + '_effort.png'))
Expand Down

0 comments on commit a510e87

Please sign in to comment.