Skip to content

Convert Azure ML exported dataset to Yolov5 Training format.

Notifications You must be signed in to change notification settings

visionify/azure-ml-to-yolov5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Azure ML to Yolov5 Pipeline

Usage

python3 az2yolo.py --help

usage: az2yolo.py [-h] [--json JSON] [--clean] [--download-images] [--create-shelf-dataset] [--create-object-dataset] [--threads THREADS]

optional arguments:
  -h, --help            show this help message and exit
  --json JSON           Path to input JSON file
  --clean               Clean all past datasets
  --download-images     Download images specified in JSON
  --create-shelf-dataset
                        Create shelf-dataset
  --create-object-dataset
                        Create object-dataset
  --threads THREADS     Max threads (only works for --download-images)
  • Start by cleaning any prior datasets.
python3 az2yolo.py --clean
  • A starting JSON file is needed to start this pipeline. This can be downloaded via Azure Machine Learning Studio - and export the dataset as a COCO JSON Format. Please make sure the Blob Storage provides anonymous read access to the images. Copy over the JSON file in this folder.

  • Run this command to download all the images mentioned in the COCO json dataset & create a yolov5 dataset from it.

python3 az2yolo.py --json data.json --download-images
  • Create a shelf dataset. (Only use shelf labels)
python3 az2yolo.py --json data.json --create-shelf-dataset
  • Run this command to create an object dataset. (Crop shelves and renormalize other classes to match shelf boundaries)
python3 az2yolo.py --json data.json --create-object-dataset
  • The results are in these folders (Original download: download, Full Yolov5 dataset: results, Shelf dataset: shelf-dataset, Object dataset: object-dataset)

  • Questions: hmurari@visionify.ai

About

Convert Azure ML exported dataset to Yolov5 Training format.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages