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

Make it compatible with LeRobot #2

Merged
merged 1 commit into from
Apr 4, 2024

Conversation

Cadene
Copy link
Collaborator

@Cadene Cadene commented Apr 3, 2024

No description provided.

@Cadene Cadene requested review from qgallouedec and aliberts April 3, 2024 18:10
Copy link
Member

@qgallouedec qgallouedec left a comment

Choose a reason for hiding this comment

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

lgtm :)

@aliberts aliberts merged commit 0fe4449 into main Apr 4, 2024
1 check passed
Comment on lines +213 to +223
#state = self.np_random.uniform(low=[50, 50, 100, 100, -np.pi], high=[450, 450, 400, 400, np.pi])
rs = np.random.RandomState(seed=seed)
state = np.array(
[
rs.randint(50, 450),
rs.randint(50, 450),
rs.randint(100, 400),
rs.randint(100, 400),
rs.randn() * 2 * np.pi - np.pi,
]
)
Copy link
Collaborator Author

@Cadene Cadene Apr 4, 2024

Choose a reason for hiding this comment

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

@aliberts @qgallouedec For next time, we should remove the commented code if there is not context like a TODO or human readable comments before merging.

By the way, I tried both strategies during evaluation:

  • with randint: 62% success rate (original pusht code)
  • wihtout randint: 64% success rate (Quentin code)

So you were right @qgallouedec ^^ It seems to not affect success rate much (even improves it a bit!!!)

To reproduce:

DATA_DIR=../lerobot/data python lerobot/scripts/eval.py --hub-id lerobot/diffusion_policy_pusht_image --revision v1.1 eval_episodes=150 hydra.run.dir=outputs/eval/example_hub_2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants