-
First, download YOLO files here and extract.
-
Install python dependencies:
pip install -r requirements.txt
-
Clone Darknet repository:
git clone https://github.com/AlexeyAB/darknet.git
-
Generate libso to darknet python wrapper:
cd darknet/
4.1. Compile for GPU use:
make GPU=1 CUDNN=1 LIBSO=1 ARCH='-gencode arch=compute_86,code=[sm_86,compute_86]'
4.2. Compile for CPU use:
make LIBSO=1
-
Set your images folder path in
in_path
variable, andOUT_PATH
to save in. -
Run tool:
python crop_save.py
herculessillva / ods-tool Goto Github PK
View Code? Open in Web Editor NEWPython tool to Object Detect and Save (ODS) with darknet wrapper