To install the dependencies, run
pip install -r requirements.txt
- Data preparation
Download the dataset from
git clone https://github.com/EscVM/OIDv4_ToolKit
- Install the required packages
cd OIDv4_ToolKit && pip3 install -r requirements.txt
- Use the ToolKit to download images for Object Detection
! cd OIDv4_ToolKit && python3 main.py downloader --classes Shorts Dress Coat Suit Skirt Jacket Jeans Swimwear --type_csv train --multiclasses 1 --limit 600
! cd OIDv4_ToolKit && python3 main.py downloader --classes Shorts Dress Coat Suit Skirt Jacket Jeans Swimwear --type_csv validation --multiclasses 1 --limit 300
- Convert dataset in comfortable format
! cd OIDv4_ToolKit && python3 convert_xml.py
- Generate anchors for your dataset (optional)
python gen_anchors.py -c config.json
- Start the training process
python train.py -c config.json
- It carries out detection on the image and write the image with detected bounding boxes to the output folder.
python predict.py -c config.json -i /path/to/image/or/video
- or Start the web app
python3 web_app.py
https://github.com/experiencor/keras-yolo3 - YOLOv3 model training.