- clone yolo repository: http://github.com/alexeyab/darknet
- replace existing data dir with data dir from this repo
- run the
convert_pig_to_yolo.py
script to convert from our existing annotation format to yolo's format - run the
create_train_test_split.py
to split up into train/test sets - modify
Makefile
and setGPU=1
,CUDNN=1
,LIBSO=1
, and uncommentARCH=
line corresponding to whatever GPU you have - run
make
in the current directory - to train, download existing yolo weights, and run
./darknet detector train data/obj.data cfg/yolo-obj.cfg yolov4.conv.137
. - to annotate, run
python3 annotate.py --input INPUT_FILE