Datasets:
add samples
Once you have all the samples, you can use the code snippet below to merge all the samples together. Then, the last line downloads the files of the merged dataset, which includes all the already uploaded samples. Those files will replace the current ones in the directory.
from huggingface_hub import snapshot_download
from lerobot.datasets.lerobot_dataset import LeRobotDataset
from lerobot.datasets.dataset_tools import merge_datasets
repo_ids = ['peleito/LIR_Lab3_Imitation_Learning', '[user_name]/[repo_name1]', '[user_name]/[repo_name2]', ...]
ds = [LeRobotDataset(id) for id in repo_ids]
merged_data = merge_datasets(ds, "[user_name]/[merged_repo]")
merged_data.push_to_hub()
snapshot_download(
repo_id="[user_name]/[merged_repo]",
repo_type="dataset",
local_dir="."
)
I merged yours and my datasets together using this command. There are now 10 episodes in the dataset. Thanks for getting the script together for it!