We are going to use Reverse Engineering technique. First we will detect objects into images the save their bounding box coordinates as per our requirement in XML format.
For Anaconda python Environment
conda create -n env
Activate env
For Linux
sudo apt install python3-venv
python3 -m venv env
source env/bin/activate
Install dependencies
pip install -r requirements.txt
- Download pre-trained weights from given link
https://drive.google.com/file/d/1FCGAQsBADMPdyfmZrOsSDeneikGWcnlu/view
- Replace yolov4-csp.weights with downloded weights (file size 202MB) in configuration directory
Open Annotaions.name
file present in configuration directory and edit the Labels names as per your dataset.
Run python start_annotation.py