Skip to main content

Convert Roboflow datasets into HuggingFace datasets format and upload to HuggingFace Hub.

Project description

roboflow2huggingface

Convert Roboflow datasets into HuggingFace datasets format and upload to HuggingFace Hub.

Supports image-classification, object-detection, and instance-segmentation formats.

installation

pip install roboflow2huggingface

api usage

from roboflow2huggingface import roboflow_to_huggingface_pipeline

roboflow_to_huggingface_pipeline(
    roboflow_universe_url='https://universe.roboflow.com/boxer5/123-qq5ea/dataset/6',
    roboflow_api_key=YOUR-ROBOFLOW-API-KEY,
    hf_dataset_id=DESIRED-HF-HUB-ID,
    hf_write_token=YOUR-HF-WRITE-TOKEN,
)

cli usage

roboflow2huggingface --roboflow_universe_url https://universe.roboflow.com/boxer5/123-qq5ea/dataset/6 --roboflow_api_key YOUR-ROBOFLOW-API-KEY --hf_dataset_id DESIRED-HF-HUB-ID --hf_write_token YOUR-HF-WRITE-TOKEN

converted datasets

Check converted datasets on the 🤗 hub: https://huggingface.co/datasets?other=roboflow2huggingface

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

roboflow2huggingface-0.0.22.tar.gz (90.3 kB view hashes)

Uploaded Source

Built Distribution

roboflow2huggingface-0.0.22-py3-none-any.whl (95.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page