cuda >=10.0 python = 3.7
extractgallname.py
extract the path and name of images from train, gallery and query dataset and saved intrain.txt
. Commond ispython extractgallname.py --root /path/to/dataset/
- copy
train.txt
to/darknet/data/
- under the root of YOLOV4,
./darknet detector test cfg/coco.data cfg/yolov4.cfg yolov4.weights -ext_output -dont_show -out result.json < data/train.txt
generates aresult.json
file in/darknet
. - under
/darknet
path, runjson2bike.py
to load a json file and generate abikename.txt
in target file. Also can move bike images from root file to target file. Commond ispython json2bike.py --data ./result.json --target /target/path/to/save/bike-images/ --root /root/path/