US Segmentation Dataset
The dataset is a collection of openly available ultrasound datasets.
The individual datasets are stored as zip files in the zip directory. The utility for extraction all of them will be provided later.
Instructions for uploading new datasets
- Download the dataset from the source
- Convert the dataset into a zip format if required
- Upload the zip file corresponding anatomy folder in the
zipdirectory using the command:hf upload [repo_id] [local_path] [path_in_repo] --repo-type dataset --commit-message "add-dataset: <dataset_name>"
eg: hf upload us-segmentator/us-segmentation-dataset local_path_to_zip_file.zip zips/<anatomy_name>/<zip_file_name>.zip --repo-type dataset --commit-message "add-dataset: <dataset_name>"
To Download the dataset, use the following command:
- Make sure you have git lfs installed
- Run the following command:
git lfs install
- Run the following command:
hf download us-segmentator/us-segmentation-dataset --repo-type dataset --local-dir local_path_to_download_directory
- The dataset will be downloaded to the local directory.
Note: The dataset can be downloaded without the --local-dir argument, but it will be downloaded the huggingface cache directory.