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

patch to make dataset generation work #3

Open
wants to merge 1 commit into
base: stretch-act
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion lerobot/common/datasets/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def make_dataset(cfg, split: str = "train") -> LeRobotDataset | MultiLeRobotData
if isinstance(cfg.dataset_repo_id, str):
dataset = LeRobotDataset(
cfg.dataset_repo_id,
version=cfg.repo_version,
# version=cfg.repo_version,
split=split,
delta_timestamps=cfg.training.get("delta_timestamps"),
image_transforms=image_transforms,
Expand Down
2 changes: 1 addition & 1 deletion lerobot/scripts/push_dataset_to_hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def push_dataset_to_hub(
# convert dataset from original raw format to LeRobot format
from_raw_to_lerobot_format = get_from_raw_to_lerobot_format_fn(raw_format)
hf_dataset, episode_data_index, info = from_raw_to_lerobot_format(
raw_dir, videos_dir, fps, video, episodes, encoding
raw_dir, videos_dir, fps, video, #episodes, encoding
)

lerobot_dataset = LeRobotDataset.from_preloaded(
Expand Down
2 changes: 1 addition & 1 deletion lerobot/scripts/visualize_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def visualize_dataset(
), "Set an output directory where to write .rrd files with `--output-dir path/to/directory`."

logging.info("Loading dataset")
dataset = LeRobotDataset(repo_id, root=root, version="main")
dataset = LeRobotDataset(repo_id, root=root)

logging.info("Loading dataloader")
episode_sampler = EpisodeSampler(dataset, episode_index)
Expand Down