- Download specific classes from the Coco Dataset for custrom object detection needs.
- Download multiple classes at the same time (Multi-threaded).
- Pickup where you left off if your connection is interrupted.
1. pycocotools
pip install pycocotools
git clone https://github.com/KaranJagtiani/YOLO-Coco-Dataset-Custom-Classes-Extractor.git
2. Download the 2017 Train/Val annotations [241MB] zip file and put the instances_train2017.json file in the cloned repository's main directory.
python coco-extractor.py --help
python coco-extractor.py "person"
python coco-extractor.py "person" "sports ball" "zebra"
Test your downloaded images and the bounding boxes with labelImg.