Skip to main content

Automatically create Gradio apps from YOLOv5 models and push to the Space.

Project description

yolov5tospace

Automatically create Gradio apps from YOLOv5 models and push to the Spaces

installation

pip install yolov5tospace

api usage

from yolov5tospace import yolov5_to_space_pipeline

yolov5_to_space_pipeline(
    base_name="Visdrone",
    model_types=["yolov5n"],
    hfhub_username=YOUR-HFHUB-USERNAME,
    task="object-detection",
    test_images_folder=None,
)

or

from yolov5tospace import yolov5_to_space_pipeline

yolov5_to_space_pipeline(
    base_name="Visdrone",
    hfhub_model_ids=[YOUR-HFHUB-MODELID-1, YOUR-HFHUB-MODELID-2],
    hfhub_username=YOUR-HFHUB-USERNAME,
    task="object-detection",
    test_images_folder=None,
)

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

yolov5tospace-0.0.8.tar.gz (5.2 kB view hashes)

Uploaded source

Built Distribution

yolov5tospace-0.0.8-py3-none-any.whl (6.2 kB view hashes)

Uploaded py3

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