SkillAgentSearch skills...

ClothesDetection

No description available

Install / Use

/learn @maximenkooo/ClothesDetection
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

ClothesDetection with YOLO3 (Detection, Training, and Web deploy)

Example image

Installing

To install the dependencies, run

pip install -r requirements.txt

Prepare data

  1. Data preparation

Download the dataset from

git clone https://github.com/EscVM/OIDv4_ToolKit

  1. Install the required packages

cd OIDv4_ToolKit && pip3 install -r requirements.txt

  1. 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

  1. Convert dataset in comfortable format

! cd OIDv4_ToolKit && python3 convert_xml.py

  1. Generate anchors for your dataset (optional)

python gen_anchors.py -c config.json

Start the training process

  1. Start the training process

python train.py -c config.json

Perform detection using trained weights on image, set of images, video, or webcam

  1. 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

  1. or Start the web app python3 web_app.py

WEb App

References

https://github.com/experiencor/keras-yolo3 - YOLOv3 model training.

Related Skills

View on GitHub
GitHub Stars9
CategoryDevelopment
Updated3y ago
Forks1

Languages

Python

Security Score

50/100

Audited on Jan 4, 2023

No findings