Michel Aractingi
d51374ce12
Several fixes to move the actor_server and learner_server code from the maniskill environment to the real robot environment.
...
Co-authored-by: Adil Zouitine <adilzouitinegm@gmail.com >
2025-02-10 16:03:39 +01:00
Eugene Mironov
b63738674c
[HIL-SERL port] Add Reward classifier benchmark tracking to chose best visual encoder ( #688 )
2025-02-06 18:39:51 +01:00
Michel Aractingi
12525242ce
- Added lerobot/scripts/server/gym_manipulator.py that contains all the necessary wrappers to run a gym-style env around the real robot.
...
- Added `lerobot/scripts/server/find_joint_limits.py` to test the min and max angles of the motion you wish the robot to explore during RL training.
- Added logic in `manipulator.py` to limit the maximum possible joint angles to allow motion within a predefined joint position range. The limits are specified in the yaml config for each robot. Checkout the so100.yaml.
Co-authored-by: Adil Zouitine <adilzouitinegm@gmail.com >
2025-02-06 16:29:37 +01:00
Michel Aractingi
7d5a9530f7
fixed bug in crop_dataset_roi.py
...
added missing buffer.pt in server dir
Co-authored-by: Adil Zouitine <adilzouitinegm@gmail.com >
2025-02-05 18:22:50 +00:00
Michel Aractingi
e0527b4a6b
Added additional wrappers for the environment: Action repeat, keyboard interface, reset wrapper
...
Tested the reset mechanism and keyboard interface and the convert wrapper on the robots.
Co-authored-by: Adil Zouitine <adilzouitinegm@gmail.com >
2025-02-04 17:41:14 +00:00
Michel Aractingi
efb1982eec
Added crop_dataset_roi.py that allows you to load a lerobotdataset -> crop its images -> create a new lerobot dataset with the cropped and resized images.
...
Co-authored-by: Adil Zouitine <adilzouitinegm@gmail.com >
2025-02-03 17:48:35 +00:00
Michel Aractingi
2211209be5
- Added base gym env class for the real robot environment.
...
- Added several wrappers around the base gym env robot class.
- Including: time limit, reward classifier, crop images, preprocess observations.
- Added an interactive script crop_roi.py where the user can interactively select the roi in the observation images and return the correct crop values that will improve the policy and reward classifier performance.
Co-authored-by: Adil Zouitine <adilzouitinegm@gmail.com >
2025-02-03 15:07:59 +00:00
Michel Aractingi
506821c7df
- Refactor observation encoder in modeling_sac.py
...
- added `torch.compile` to the actor and learner servers.
- organized imports in `train_sac.py`
- optimized the parameters push by not sending the frozen pre-trained encoder.
Co-authored-by: Adil Zouitine <adilzouitinegm@gmail.com >
2025-02-03 15:07:58 +00:00
Michel Aractingi
7c89bd1018
Cleaned learner_server.py. Added several block function to improve readability.
...
Co-authored-by: Adil Zouitine <adilzouitinegm@gmail.com >
2025-02-03 15:07:58 +00:00
Michel Aractingi
367dfe51c6
Added support for checkpointing the policy. We can save and load the policy state dict, optimizers state, optimization step and interaction step
...
Added functions for converting the replay buffer from and to LeRobotDataset. When we want to save the replay buffer, we convert it first to LeRobotDataset format and save it locally and vice-versa.
Co-authored-by: Adil Zouitine <adilzouitinegm@gmail.com >
2025-02-03 15:07:58 +00:00
Michel Aractingi
e856ffc91e
Removed unnecessary time.sleep in the streaming server on the learner side
...
Co-authored-by: Adil Zouitine <adilzouitinegm@gmail.com >
2025-02-03 15:07:58 +00:00
Michel Aractingi
42618f4bd6
- Added additional logging information in wandb around the timings of the policy loop and optimization loop.
...
- Optimized critic design that improves the performance of the learner loop by a factor of 2
- Cleaned the code and fixed style issues
- Completed the config with actor_learner_config field that contains host-ip and port elemnts that are necessary for the actor-learner servers.
Co-authored-by: Adil Zouitine <adilzouitinegm@gmail.com >
2025-02-03 15:07:58 +00:00
Michel Aractingi
36576c958f
FREEDOM, added back the optimization loop code in learner_server.py
...
Ran experiment with pushcube env from maniskill. The learning seem to work.
Co-authored-by: Adil Zouitine <adilzouitinegm@gmail.com >
2025-02-03 15:07:58 +00:00
Michel Aractingi
322a78a378
Added server directory in lerobot/scripts that contains scripts and the protobuf message types to split training into two processes, acting and learning. The actor rollouts the policy and collects interaction data while the learner recieves the data, trains the policy and sends the updated parameters to the actor. The two scripts are ran simultaneously
...
Co-authored-by: Adil Zouitine <adilzouitinegm@gmail.com >
2025-02-03 15:07:58 +00:00
AdilZouitine
d75b44f89f
Stable version of rlpd + drq
2025-02-03 15:07:57 +00:00
Adil Zouitine
7d2970fdfe
Change SAC policy implementation with configuration and modeling classes
2025-02-03 15:07:50 +00:00
Adil Zouitine
c1d4bf4b63
SAC works
2025-02-03 15:06:18 +00:00
Adil Zouitine
be965019bd
Add rlpd tricks
2025-02-03 15:06:18 +00:00
Adil Zouitine
a0a50de8c9
SAC works
2025-02-03 15:06:18 +00:00
Adil Zouitine
472a7f58ad
[WIP] correct sac implementation
2025-02-03 15:06:14 +00:00
Pradeep Kadubandi
068efce3f8
Fix for the issue https://github.com/huggingface/lerobot/issues/638 ( #639 )
2025-02-03 15:04:03 +00:00
Mishig
100f54ee07
[viz] Fixes & updates to html visualizer ( #617 )
2025-02-03 15:04:03 +00:00
Ville Kuosmanen
a1b5d0faf2
fix(visualise): use correct language description for each episode id ( #604 )
...
Co-authored-by: Simon Alibert <75076266+aliberts@users.noreply.github.com >
2025-02-03 15:04:03 +00:00
Mishig
0a4e9e25d0
[vizualizer] for LeRobodDataset V2 ( #576 )
2025-02-03 15:04:02 +00:00
Michel Aractingi
3bb5ed5e91
Extend reward classifier for multiple camera views ( #626 )
2025-01-13 13:57:49 +01:00
Eugene Mironov
c5bca1cf0f
[Port HIL_SERL] Final fixes for the Reward Classifier ( #598 )
2025-01-06 11:34:00 +01:00
Michel Aractingi
35de91ef2b
added temporary fix for missing task_index key in online environment
2024-12-30 13:47:28 +00:00
Michel Aractingi
dc54d357ca
Added normalization schemes and style checks
2024-12-29 12:51:21 +00:00
Michel Aractingi
08ec971086
added optimizer and sac to factory.py
2024-12-23 14:12:03 +01:00
Michel Aractingi
668d493bf9
Update lerobot/scripts/train_hilserl_classifier.py
...
Co-authored-by: Yoel <yoel.chornton@gmail.com >
2024-12-17 02:44:31 +07:00
Eugene Mironov
1020bc3108
Fixup
2024-12-17 02:42:53 +07:00
Michel Aractingi
7fcf638c0d
Add human intervention mechanism and eval_robot script to evaluate policy on the robot ( #541 )
...
Co-authored-by: Yoel <yoel.chornton@gmail.com >
2024-12-17 02:41:31 +07:00
Yoel
e35546f58e
Reward classifier and training ( #528 )
...
Co-authored-by: Daniel Ritchie <daniel@brainwavecollective.ai >
Co-authored-by: resolver101757 <kelster101757@hotmail.com >
Co-authored-by: Jannik Grothusen <56967823+J4nn1K@users.noreply.github.com >
Co-authored-by: Remi <re.cadene@gmail.com >
Co-authored-by: Michel Aractingi <michel.aractingi@huggingface.co >
2024-12-17 02:41:29 +07:00
Simon Alibert
4c41f6fcc6
Fix example 6 ( #572 )
2024-12-11 10:32:18 +01:00
Michel Aractingi
8e7d6970ea
Control simulated robot with real leader ( #514 )
...
Co-authored-by: Remi <remi.cadene@huggingface.co >
2024-12-03 12:20:05 +01:00
Remi
286bca37cc
Fix missing local_files_only in record/replay ( #540 )
...
Co-authored-by: Simon Alibert <alibert.sim@gmail.com >
2024-12-03 10:53:21 +01:00
Michel Aractingi
a2c181992a
Refactor OpenX ( #505 )
2024-12-03 00:51:55 +01:00
Simon Alibert
32eb0cec8f
Dataset v2.0 ( #461 )
...
Co-authored-by: Remi <remi.cadene@huggingface.co >
2024-11-29 19:04:00 +01:00
Daniel Ritchie
8af693548e
Add support for Windows ( #494 )
2024-11-22 19:14:25 +01:00
Remi
07e8716315
Add FeetechMotorsBus, SO-100, Moss-v1 ( #419 )
...
Co-authored-by: jess-moss <jess.moss@huggingface.co >
Co-authored-by: Simon Alibert <75076266+aliberts@users.noreply.github.com >
2024-10-25 11:23:55 +02:00
Remi
77478d50e5
Refactor record with add_frame ( #468 )
...
Co-authored-by: Simon Alibert <75076266+aliberts@users.noreply.github.com >
2024-10-16 20:51:35 +02:00
Remi
97b1feb0b3
Add policy/act_aloha_real.yaml + env/act_real.yaml ( #429 )
...
Co-authored-by: Simon Alibert <75076266+aliberts@users.noreply.github.com >
2024-10-10 17:12:45 +02:00
Simon Alibert
1a343c3591
Add support for Stretch (hello-robot) ( #409 )
...
Co-authored-by: Remi <remi.cadene@huggingface.co >
Co-authored-by: Remi Cadene <re.cadene@gmail.com >
2024-10-04 18:56:42 +02:00
Remi
26f97cfd17
Enable CI for robot devices with mocked versions ( #398 )
...
Co-authored-by: Simon Alibert <75076266+aliberts@users.noreply.github.com >
2024-10-03 17:05:23 +02:00
Simon Alibert
c712d68f6a
Fix nightlies ( #443 )
2024-09-18 14:51:45 +02:00
Remi
beaa427504
Fix slow camera fps with Aloha ( #433 )
2024-09-12 14:20:24 +02:00
Jack Vial
b0b8612eff
fix(calibrate): fix calibrate arms option type. should be str not int ( #418 )
...
Co-authored-by: Remi <remi.cadene@huggingface.co >
2024-09-06 14:44:31 +02:00
Remi
429a463aff
Control aloha robot natively ( #316 )
...
Co-authored-by: Simon Alibert <75076266+aliberts@users.noreply.github.com >
2024-09-04 19:28:05 +02:00
Mishig
114e09f570
rm EpisodeSampler from viz ( #389 )
2024-08-30 10:53:55 +02:00
Michel Aractingi
4806336816
Add the possibility to visualize language instructions in visualize_dataset_html.py ( #388 )
...
Co-authored-by: Mishig <dmishig@gmail.com >
2024-08-28 11:50:31 +02:00