Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lerobot/common/datasets/abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
from torchrl.data.replay_buffers.writers import ImmutableDatasetWriter, Writer
from torchrl.envs.transforms.transforms import Compose

HF_USER = "lerobot"


class AbstractExperienceReplay(TensorDictReplayBuffer):
def __init__(
Expand Down Expand Up @@ -106,7 +108,7 @@ def _download_or_load_dataset(self) -> torch.StorageBase:
if self.root is None:
self.data_dir = Path(
snapshot_download(
repo_id=f"cadene/{self.dataset_id}", repo_type="dataset", revision=self.version
repo_id=f"{HF_USER}/{self.dataset_id}", repo_type="dataset", revision=self.version
)
)
else:
Expand Down
2 changes: 1 addition & 1 deletion lerobot/common/datasets/aloha.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class AlohaExperienceReplay(AbstractExperienceReplay):
def __init__(
self,
dataset_id: str,
version: str | None = "v1.1",
version: str | None = "v1.2",
batch_size: int = None,
*,
shuffle: bool = True,
Expand Down
2 changes: 1 addition & 1 deletion lerobot/common/datasets/pusht.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class PushtExperienceReplay(AbstractExperienceReplay):
def __init__(
self,
dataset_id: str,
version: str | None = "v1.1",
version: str | None = "v1.2",
batch_size: int = None,
*,
shuffle: bool = True,
Expand Down
Binary file modified tests/data/aloha_sim_insertion_human/stats.pth
Binary file not shown.
Binary file modified tests/data/aloha_sim_insertion_scripted/stats.pth
Binary file not shown.
Binary file modified tests/data/aloha_sim_transfer_cube_human/stats.pth
Binary file not shown.
Binary file modified tests/data/aloha_sim_transfer_cube_scripted/stats.pth
Binary file not shown.
Binary file modified tests/data/pusht/stats.pth
Binary file not shown.
3 changes: 3 additions & 0 deletions tests/test_policies.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
("simxarm", "diffusion", []),
("pusht", "diffusion", []),
("aloha", "act", ["env.task=sim_insertion_scripted"]),
("aloha", "act", ["env.task=sim_insertion_human"]),
("aloha", "act", ["env.task=sim_transfer_cube_scripted"]),
("aloha", "act", ["env.task=sim_transfer_cube_human"]),
],
)
def test_concrete_policy(env_name, policy_name, extra_overrides):
Expand Down