-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Remove config yaml for robot devices #594
Remove config yaml for robot devices #594
Conversation
…hydra' into user/rcadene/2024_12_24_remove_hydra_robot_devices
87d92f9
to
06b604b
Compare
…hydra' into user/rcadene/2024_12_24_remove_hydra_robot_devices
…hydra' into user/rcadene/2024_12_24_remove_hydra_robot_devices
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Impressive work, thank you @Cadene!
Definitely a good step in the right direction ;)
We can leave out the purely style-related comments for now but I think we need to iterate a bit more on these tests.
We can mark.skip
them back and split some of this work in a subsequent PR. WDYT?
def make_transform_from_config(cfg: ImageTransformConfig): | ||
if cfg.type == "Identity": | ||
return v2.Identity(**cfg.kwargs) | ||
elif cfg.type == "ColorJitter": | ||
return v2.ColorJitter(**cfg.kwargs) | ||
elif cfg.type == "SharpnessJitter": | ||
return SharpnessJitter(**cfg.kwargs) | ||
else: | ||
raise ValueError(f"Transform '{cfg.type}' is not valid.") | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reminder: Move this in tests/
as it's only used for that purpose
ALOHA_MOBILE_INFO = { | ||
"robot_config": parse_robot_config(ALOHA_CONFIG), | ||
"robot_config": AlohaRobotConfig(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could add a use_shadow_motors
option here
lerobot/common/envs/factory.py
Outdated
def make_env_config(env_type: str, **kwargs) -> EnvConfig: | ||
if env_type == "real_world": | ||
return RealEnv(**kwargs) | ||
elif env_type == "aloha": | ||
return AlohaEnv(**kwargs) | ||
elif env_type == "pusht": | ||
return PushtEnv(**kwargs) | ||
elif env_type == "xarm": | ||
return XarmEnv(**kwargs) | ||
else: | ||
raise ValueError(f"Policy type '{env_type}' is not available.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move to tests/
?
input_features = [ | ||
PolicyFeature( | ||
key="observation.image", | ||
type=FeatureType.VISUAL, | ||
normalization_mode=NormalizationMode.MEAN_STD, | ||
shape=[3, 96, 96], | ||
), | ||
PolicyFeature( | ||
key="observation.state", | ||
type=FeatureType.STATE, | ||
normalization_mode=NormalizationMode.MIN_MAX, | ||
shape=[10], | ||
), | ||
] | ||
output_features = [ | ||
PolicyFeature( | ||
key="action", | ||
type=FeatureType.ACTION, | ||
normalization_mode=NormalizationMode.MIN_MAX, | ||
shape=[5], | ||
), | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move this out of the test into a fixture?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not used anywhere else.
But test too long.
Will redesign later.
…hydra' into user/rcadene/2024_12_24_remove_hydra_robot_devices
4261c5a
into
user/aliberts/2024_11_30_remove_hydra
[Fix] Move back to manual calibration (#488) feat: enable to use multiple rgb encoders per camera in diffusion policy (#484) Co-authored-by: Alexander Soare <alexander.soare159@gmail.com> Fix config file (#495) fix: broken images and a few minor typos in README (#499) Signed-off-by: ivelin <ivelin117@gmail.com> Add support for Windows (#494) bug causes error uploading to huggingface, unicode issue on windows. (#450) Add distinction between two unallowed cases in name check "eval_" (#489) WIP Fix autocalib moss (#486) [Fix] Move back to manual calibration (#488) feat: enable to use multiple rgb encoders per camera in diffusion policy (#484) Co-authored-by: Alexander Soare <alexander.soare159@gmail.com> Fix config file (#495) fix: broken images and a few minor typos in README (#499) Signed-off-by: ivelin <ivelin117@gmail.com> Add support for Windows (#494) bug causes error uploading to huggingface, unicode issue on windows. (#450) Add distinction between two unallowed cases in name check "eval_" (#489) Rename deprecated argument (temporal_ensemble_momentum) (#490) Dataset v2.0 (#461) Co-authored-by: Remi <remi.cadene@huggingface.co> Refactor OpenX (#505) Fix missing local_files_only in record/replay (#540) Co-authored-by: Simon Alibert <alibert.sim@gmail.com> Control simulated robot with real leader (#514) Co-authored-by: Remi <remi.cadene@huggingface.co> Update 7_get_started_with_real_robot.md (#559) LerobotDataset pushable to HF from any folder (#563) Fix example 6 (#572) fixing typo from 'teloperation' to 'teleoperation' (#566) [vizualizer] for LeRobodDataset V2 (#576) Fix broken `create_lerobot_dataset_card` (#590) Update README.md (#612) Add draccus, create MainConfig WIP refactor train.py and ACT Add policies training presets Update diffusion policy Add pusht and xarm env configs Update tdmpc Update vqbet Fix poetry relax Add feature types to envs Add EvalPipelineConfig, parse features from envs Add custom parser Update pretrained loading mechanisms Add dependency fixes & lock update Fix pretrained_path Refactor envs, remove RealEnv Fix typo Enable end-to-end tests Fix Makefile Log eval config Fix end-to-end tests Fix Quality workflow (#622) Remove amp & add resume test Speed-up tests Fix poetry relax Remove config yaml for robot devices (#594) Co-authored-by: Simon Alibert <simon.alibert@huggingface.co> fix(docs): typos in benchmark readme.md (#614) Co-authored-by: Simon Alibert <75076266+aliberts@users.noreply.github.com> fix(visualise): use correct language description for each episode id (#604) Co-authored-by: Simon Alibert <75076266+aliberts@users.noreply.github.com> typo fix: batch_convert_dataset_v1_to_v2.py (#615) Co-authored-by: Simon Alibert <75076266+aliberts@users.noreply.github.com> [viz] Fixes & updates to html visualizer (#617) Fix logger Remove hydra-core Add aggregate_stats Add estimate_num_samples for images, Add test image Remove NoneSchedulerConfig Add push_pretrained Remove eval.episode_length Fix wandb_video Fix typo Add features back into policy configs (#643) fixes to SO-100 readme (#600) Co-authored-by: Philip Fung <no@one> Co-authored-by: Simon Alibert <75076266+aliberts@users.noreply.github.com> Fix for the issue #638 (#639) Fix env_to_policy_features call Fix wandb init remove omegaconf Add branch arg Move deprecated Move training config Remove pathable_args Implement custom HubMixin Fixes Implement PreTrainedPolicy base class Add HubMixin to TrainPipelineConfig Udpate example 2 & 3 Update push_pretrained Bump`rerun-sdk` dependency to `0.21.0` (#618) Co-authored-by: Simon Alibert <75076266+aliberts@users.noreply.github.com> Fix config_class Fix from_pretrained kwargs Remove policy_protocol Camelize PretrainedConfig Additional fix while retraining policies (#629) Co-authored-by: Simon Alibert <simon.alibert@huggingface.co> Actually reactivate tdmpc online test Update example 4 Remove advanced example 1 Remove example 5 Move example 6 to advanced Use HubMixin.save_pretrained Enable config_path to be a repo_id Dry has_method Update example 4 Update README Cleanup pyproject.toml Update eval docstring Update README Clean example 4 Update README Make 'last' checkpoint symlink relative Fix cluster image (#653) Simplify example 4 fix stats per episodes and aggregate stats and casting to tensor
What this does
Remove config yaml for robot devices
TODO:
tests/utils.py
tests/test_control_robot.py
scripts/control_robot.py
How it was tested
How to checkout & try? (for the reviewer)
TODO