Commit Graph

735 Commits

Author SHA1 Message Date
Adil Zouitine de93d1e9f8 Change SAC policy implementation with configuration and modeling classes 2025-03-24 09:11:14 +00:00
Adil Zouitine 7d9ba3d8ba SAC works 2025-03-24 09:10:38 +00:00
Adil Zouitine f73d76e050 [WIP] correct sac implementation 2025-03-24 09:10:38 +00:00
Adil Zouitine e468774d9a Add rlpd tricks 2025-03-24 09:10:38 +00:00
Adil Zouitine b69eac0810 SAC works 2025-03-24 09:10:38 +00:00
Adil Zouitine fb515799e6 remove breakpoint 2025-03-24 09:10:38 +00:00
Adil Zouitine 7aeae0d06d [WIP] correct sac implementation 2025-03-24 09:10:38 +00:00
Pradeep Kadubandi 212b12cf82 Fix for the issue https://github.com/huggingface/lerobot/issues/638 (#639) 2025-03-24 09:10:38 +00:00
Michel Aractingi 5ac79d5b2b Extend reward classifier for multiple camera views (#626) 2025-03-24 09:10:18 +00:00
Eugene Mironov 55c414da09 [Port HIL_SERL] Final fixes for the Reward Classifier (#598) 2025-03-24 09:09:38 +00:00
Michel Aractingi 9e9285190d added temporary fix for missing task_index key in online environment 2025-03-24 09:08:44 +00:00
Michel Aractingi 4e5fcd5d23 split encoder for critic and actor 2025-03-24 09:08:17 +00:00
Michel Aractingi 3b86ed79db style fixes 2025-03-24 09:08:17 +00:00
KeWang1017 9968dd06e0 Refactor SAC configuration and policy for improved action sampling and stability
- Updated SACConfig to replace standard deviation parameterization with log_std_min and log_std_max for better control over action distributions.
- Modified SACPolicy to streamline action selection and log probability calculations, enhancing stochastic behavior.
- Removed deprecated TanhMultivariateNormalDiag class to simplify the codebase and improve maintainability.

These changes aim to enhance the robustness and performance of the SAC implementation during training and inference.
2025-03-24 09:08:17 +00:00
KeWang1017 9e9e49ea53 Refine SAC configuration and policy for enhanced performance
- Updated standard deviation parameterization in SACConfig to 'softplus' with defined min and max values for improved stability.
- Modified action sampling in SACPolicy to use reparameterized sampling, ensuring better gradient flow and log probability calculations.
- Cleaned up log probability calculations in TanhMultivariateNormalDiag for clarity and efficiency.
- Increased evaluation frequency in YAML configuration to 50000 for more efficient training cycles.

These changes aim to enhance the robustness and performance of the SAC implementation during training and inference.
2025-03-24 09:08:17 +00:00
KeWang1017 68896c9e44 Refactor SACPolicy for improved action sampling and standard deviation handling
- Updated action selection to use distribution sampling and log probabilities for better stochastic behavior.
- Enhanced standard deviation clamping to prevent extreme values, ensuring stability in policy outputs.
- Cleaned up code by removing unnecessary comments and improving readability.

These changes aim to refine the SAC implementation, enhancing its robustness and performance during training and inference.
2025-03-24 09:08:17 +00:00
KeWang1017 76516128a4 trying to get sac running 2025-03-24 09:08:17 +00:00
Michel Aractingi 167eee34dd Added normalization schemes and style checks 2025-03-24 09:08:17 +00:00
Michel Aractingi 325406cdc5 added optimizer and sac to factory.py 2025-03-24 09:08:17 +00:00
Eugene Mironov dc89e53d8d [HIL-SERL PORT] Fix linter issues (#588) 2025-03-24 09:07:18 +00:00
Eugene Mironov 0ce97c8061 [Port Hil-SERL] Add unit tests for the reward classifier & fix imports & check script (#578) 2025-03-24 09:07:18 +00:00
Michel Aractingi 93b8ced3c8 added comments from kewang 2025-03-24 09:05:08 +00:00
KeWang1017 aafc73eb57 Enhance SAC configuration and policy with new parameters and subsampling logic
- Added `num_subsample_critics`, `critic_target_update_weight`, and `utd_ratio` to SACConfig.
- Implemented target entropy calculation in SACPolicy if not provided.
- Introduced subsampling of critics to prevent overfitting during updates.
- Updated temperature loss calculation to use the new target entropy.
- Added comments for future UTD update implementation.

These changes improve the flexibility and performance of the SAC implementation.
2025-03-24 09:05:08 +00:00
KeWang 7efa1d6231 Port SAC WIP (#581)
Co-authored-by: KeWang1017 <ke.wang@helloleap.ai>
2025-03-24 09:05:08 +00:00
Michel Aractingi 2638b1a94a completed losses 2025-03-24 09:05:08 +00:00
Michel Aractingi b4d2604a8e nit in control_robot.py 2025-03-24 09:05:08 +00:00
Michel Aractingi 7e0cddb1c8 Update lerobot/scripts/train_hilserl_classifier.py
Co-authored-by: Yoel <yoel.chornton@gmail.com>
2025-03-24 09:05:08 +00:00
Eugene Mironov 4a5212d0e7 Fixup 2025-03-24 09:05:08 +00:00
Michel Aractingi 3b595bfd9b Add human intervention mechanism and eval_robot script to evaluate policy on the robot (#541)
Co-authored-by: Yoel <yoel.chornton@gmail.com>
2025-03-24 09:04:36 +00:00
Yoel 97b8214cd2 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>
2025-03-24 09:04:12 +00:00
Simon Alibert fe483b1d0d
Remove `poetry.lock` (#737)
Co-authored-by: Remi <remi.cadene@huggingface.co>
2025-02-17 12:03:16 +01:00
Simon Alibert ddeade077e
Conform pyproject to PEP 621 (#621) 2025-02-16 14:28:03 +01:00
Simon Alibert c4c2ce04e7
Update pre-commits (#733) 2025-02-15 15:51:17 +01:00
Simon Alibert 2cb0bf5d41
Add zizmor pre-commit (#732) 2025-02-15 15:50:10 +01:00
Simon Alibert b86a2c0b47
Fix wandb logging (#730) 2025-02-14 18:00:12 +01:00
Ilia Larchenko c574eb4984
Fixed eval.py on MPS (#702) 2025-02-14 00:03:55 +01:00
Simon Alibert 1e49cc4d60
Prevent resuming from hub (#726) 2025-02-13 17:15:55 +01:00
Simon Alibert e71095960f
Fixes following #670 (#719) 2025-02-12 12:53:55 +01:00
Simon Alibert 90e099b39f
Remove offline training, refactor `train.py` and logging/checkpointing (#670)
Co-authored-by: Remi <remi.cadene@huggingface.co>
2025-02-11 10:36:06 +01:00
Simon Alibert 334deb985d
Update CI trigger rules (#712) 2025-02-10 17:22:15 +01:00
Simon Alibert 8548a87bd4
Remove dataset tests artifacts (#701) 2025-02-09 14:24:01 +01:00
Remi 638d411cd3
Add Pi0 (#681)
Co-authored-by: Simon Alibert <simon.alibert@huggingface.co>
Co-authored-by: Simon Alibert <75076266+aliberts@users.noreply.github.com>
Co-authored-by: Pablo <pablo.montalvo.leroux@gmail.com>
2025-02-04 18:01:04 +01:00
Pepijn dd974529cf
User/pepijn/2025 01 31 improved tutorial so100 (#666) 2025-02-03 18:27:55 +01:00
Simon Alibert 43e079f73e
Fix nightly tests docker images (#675) 2025-02-02 13:59:33 +01:00
Simon Alibert 6674e36824
Fix Docker cpu/gpu builds (#667) 2025-02-01 12:06:11 +01:00
Pepijn ae9605f03c
fix setting motor id with new dataclass config (#668) 2025-01-31 20:48:46 +01:00
Simon Alibert 3c0a209f9f
Simplify configs (#550)
Co-authored-by: Remi <remi.cadene@huggingface.co>
Co-authored-by: HUANG TZU-CHUN <137322177+tc-huang@users.noreply.github.com>
2025-01-31 13:57:37 +01:00
Simon Alibert 1ee1acf8ad
Comply with torchvision 0.21 custom transforms (#665) 2025-01-30 22:06:11 +01:00
Thomas Lips c4d912a241
Check for "/" in feature names (#660) 2025-01-29 21:54:49 +01:00
Morgan Redfield 4323bdce22
updating config instructions for koch 1v1 motors (#658) 2025-01-28 13:20:33 +01:00