Commit Graph

722 Commits

Author SHA1 Message Date
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
HUANG TZU-CHUN 5daa45436d
Fix typos in `lerobot/scripts/visualize_dataset.py` (#656) 2025-01-28 13:07:10 +01:00
Simon Alibert 4def6d6ac2
Fix cluster image (#653) 2025-01-24 11:25:22 +01:00
Jochen Görtler d8560b8d5f
Bump`rerun-sdk` dependency to `0.21.0` (#618)
Co-authored-by: Simon Alibert <75076266+aliberts@users.noreply.github.com>
2025-01-20 09:50:11 +01:00
Pradeep Kadubandi 380b836eee
Fix for the issue https://github.com/huggingface/lerobot/issues/638 (#639) 2025-01-15 10:50:38 +01:00
Philip Fung eec6796cb8
fixes to SO-100 readme (#600)
Co-authored-by: Philip Fung <no@one>
Co-authored-by: Simon Alibert <75076266+aliberts@users.noreply.github.com>
2025-01-10 11:30:01 +01:00
Mishig 25a8597680
[viz] Fixes & updates to html visualizer (#617) 2025-01-09 11:39:54 +01:00
CharlesCNorton b8b368310c
typo fix: batch_convert_dataset_v1_to_v2.py (#615)
Co-authored-by: Simon Alibert <75076266+aliberts@users.noreply.github.com>
2025-01-09 09:57:45 +01:00
Ville Kuosmanen 5097cd900e
fix(visualise): use correct language description for each episode id (#604)
Co-authored-by: Simon Alibert <75076266+aliberts@users.noreply.github.com>
2025-01-09 09:39:48 +01:00
CharlesCNorton bc16e1b497
fix(docs): typos in benchmark readme.md (#614)
Co-authored-by: Simon Alibert <75076266+aliberts@users.noreply.github.com>
2025-01-09 09:35:27 +01:00
Simon Alibert 8f821ecad0
Fix Quality workflow (#622) 2025-01-08 13:35:11 +01:00
CharlesCNorton 4519016e67
Update README.md (#612) 2025-01-03 16:19:37 +01:00
Eugene Mironov 59e2757434
Fix broken `create_lerobot_dataset_card` (#590) 2024-12-23 15:05:59 +01:00
Mishig 73b64c3089
[vizualizer] for LeRobodDataset V2 (#576) 2024-12-20 16:26:23 +01:00