Fast-UMI: A Scalable and Hardware-Independent Universal Manipulation Interface
Welcome to the official repository of FastUMI!
Project Page | Hugging Face Dataset | PDF (Early Version) | PDF (TBA)
Physical prototypes of the Fast-UMI system
π Contents
- π₯ News
- π How to Collect Data
- π¦ How to Use the Dataset
- π Dataset Structure
- π A. Splitting Data
- π‘ B. Merging Data
- π§ Usage
- License
- Contact
π₯ News
- [2024-12] We released Data Collection Code and Dataset.
π How to Collect Data
The full data collection pipeline, including instructions and code, is available on our GitHub repository.
π¦ How to Use the Dataset
Due to Hugging Face's file size limitation of 50GB per file, the dataset has been split into smaller parts. Users need to merge the files after downloading to reconstruct the original dataset.
π A. Splitting Data
The data is split to ensure each part remains below the 50GB limit. The splitting process divides large .tar.gz
files into smaller chunks.
Splitting Overview:
- Method: Use file splitting tools or commands to divide large files into manageable parts.
- Example Tool:
split
command in Unix-based systems.
Example Command:
split -b 8G FastUMI_Data.tar.gz FastUMI_Data.tar.gz.part-
This command splits FastUMI_Data.tar.gz
into 8GB parts with filenames starting with FastUMI_Data.tar.gz.part-
.
π‘ B. Merging Data
After downloading the split files, users need to merge them to reconstruct the original dataset.
Merging Instructions:
Navigate to the Download Directory:
cd path_to_downloaded_files
Merge Files Using
cat
:Use the
cat
command to concatenate the split parts. Replacefilename.tar.gz.part-001
,filename.tar.gz.part-002
, etc., with your actual file names.cat filename.tar.gz.part-* > filename.tar.gz
Example:
cat FastUMI_Data.tar.gz.part-* > FastUMI_Data.tar.gz
Alternatively, Use the Provided Python Script to Automate Merging:
Save the following script as
merge_files.py
:import os import glob def merge_files(part_pattern, output_file): """ Merges split file parts into a single file. :param part_pattern: Pattern matching the split file parts, e.g., "filename.tar.gz.part-*" :param output_file: Name of the output merged file, e.g., "filename.tar.gz" """ parts = sorted(glob.glob(part_pattern)) if not parts: raise FileNotFoundError(f"No parts found for pattern: {part_pattern}") with open(output_file, 'wb') as outfile: for part in parts: print(f"Merging {part} into {output_file}") with open(part, 'rb') as infile: while True: chunk = infile.read(1024 * 1024) # 1MB if not chunk: break outfile.write(chunk) print(f"Merge completed: {output_file}") if __name__ == "__main__": import argparse parser = argparse.ArgumentParser(description="Merge split file parts into a single file.") parser.add_argument('--pattern', type=str, required=True, help='Pattern of split file parts, e.g., "filename.tar.gz.part-*"') parser.add_argument('--output', type=str, required=True, help='Name of the output merged file, e.g., "filename.tar.gz"') args = parser.parse_args() merge_files(args.pattern, args.output)
Usage:
Run the Merging Script:
python merge_files.py --pattern "filename.tar.gz.part-*" --output "filename.tar.gz"
Replace
filename.tar.gz.part-*
andfilename.tar.gz
with your actual file name pattern and desired output file name.Example:
python merge_files.py --pattern "FastUMI_Data.tar.gz.part-*" --output "FastUMI_Data.tar.gz"
Verify the Merged File:
Ensure that the merged file size matches the original file size before splitting. You can use the
ls -lh
command to check file sizes.ls -lh FastUMI_Data.tar.gz
Extract the Dataset:
Once merged, extract the dataset using the
tar
command:tar -xzvf FastUMI_Data.tar.gz
π§ Usage
After successfully merging and extracting the dataset, you can utilize it for training and evaluating robotic manipulation models. Detailed methodologies and application examples are available on the Project Page and in the Early Version PDF.
License
This project is licensed under the MIT License.
Contact
For questions or feedback, please reach out to the Yding Team or visit our website.
- Downloads last month
- 40