Skip to content
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

Fix make_dataset to match transforms config #264

Merged
merged 5 commits into from
Jun 12, 2024

Conversation

marinabar
Copy link
Contributor

@marinabar marinabar commented Jun 12, 2024

What this does

  • Fixes a mismatch between the format of the transforms parameter in factory.py when calling get_image_transforms and the configuration structure.
  • Add training.image_transforms.enable=true in end-to-end tests as this issue passed CI unnoticed.

How it was tested

Newly modified CI end-to-end train test failed before modification. Test does pass after the fix.

How to checkout & try? (for the reviewer)

You can run the test yourself, or run

python lerobot/scripts/train.py device=cuda \
    env=aloha \
    env.task=AlohaTransferCube-v0 \
    dataset_repo_id=lerobot/aloha_sim_transfer_cube_human \
    policy=act \
    training.offline_steps=1000 \
    training.image_transforms.enable=true

This change is Reviewable

@marinabar marinabar requested a review from aliberts June 12, 2024 15:40
@marinabar marinabar marked this pull request as ready for review June 12, 2024 15:40
Copy link
Collaborator

@aliberts aliberts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks!
Just one blocking comment from me, feel free to include the rest or not.

lerobot/common/datasets/factory.py Show resolved Hide resolved
lerobot/common/datasets/factory.py Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you enable image_transforms in the test-act-pusht-tutorial target as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed 5026796

marinabar and others added 2 commits June 12, 2024 18:16
Co-authored-by: Simon Alibert <75076266+aliberts@users.noreply.github.com>
Copy link
Collaborator

@aliberts aliberts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @marinabar! 🤗

@aliberts aliberts merged commit c38f535 into main Jun 12, 2024
6 checks passed
@aliberts aliberts deleted the user/marinabar/2024_06_12_fix_make_dataset_transforms branch June 12, 2024 17:45
@aliberts aliberts added the 🐛 Bug Something isn't working label Jun 12, 2024
@aliberts aliberts changed the title FIx make_dataset to match transforms config Fix make_dataset to match transforms config Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants