Improved method 1
Activation function (LeakyReLU to Mish) improved
Improved method 2
Bayes modifier (include sigmoid and soft max) before NMS
- Download the weight in link https://drive.google.com/file/d/1YPMjwnqV4NJu3Lm2sTNpC3XwrQPJjMzx/view?usp=sharing, put the weight file into
model_data
. - run
get_prob.py
to generate bayes weight. - Then you can run the
predict.py
.
The program may ask you the path of image, you can inputimg/street.jpg
as you want.
- Download the dataset with link https://drive.google.com/file/d/1OIRpaoKEGxrTUJ5JyYiGHKI19y1j2UHm/view?usp=sharing
- Unzip the file in
yolov4-tiny-improved
- Change model_path and classes_path in
yolo.py
model_path is the path of weight file likemodel_data/final.pth
classes_path should be the class nam. - run
get_map.py
-
Data process run
voc_annotation.py
to generate index files. -
Train run
training.py
-
Test change the model_path in
yolo.py
(the path you trained can be find in log directory)
runpredict.py
orget_map.py
https://github.com/bubbliiiing/yolov4-tiny-pytorch
https://github.com/AlexeyAB/darknet