这是一个yolo3-pytorch的源码,可以用于训练自己的模型。
MIT License
2022-04
:GPUheatmap
2022-03
:losslossstepcosadamsgdbatch_size
BiliBilihttps://github.com/bubbliiiing/yolo3-pytorch/tree/bilibili
2021-10
:fps
mAP 0.5:0.95 | mAP 0.5 | ||||
---|---|---|---|---|---|
COCO-Train2017 | yolo_weights.pth | COCO-Val2017 | 416x416 | 38.0 | 67.2 |
torch == 1.2.0 requirements.txtpytorch1.71.7.1
yolo_weights.pth : https://pan.baidu.com/s/1hCV4kg8NyStkywLiAeEr3g : 6da3
VOC : https://pan.baidu.com/s/19Mw2u_df_nBzsC2lg20fQA : j5ge
VOCVOC07+12
voc_annotation.pyannotation_mode=2voc_annotation.py2007_train.txt2007_val.txt
train.pyVOCtrain.py
yolo.pypredict.pyyolo.pymodel_pathclasses_path model_pathlogs classes_pathtxt predict.py
VOC VOCdevkitVOC2007Annotation VOCdevkitVOC2007JPEGImages
voc_annotation.py2007_train.txt2007_val.txt voc_annotation.pyclasses_pathclasses_pathtxt cls_classes.txt model_data/cls_classes.txt
cat
dog
...
voc_annotation.pyclasses_pathcls_classes.txtvoc_annotation.py
train.pytrain.pyclasses_path classes_pathtxttxtvoc_annotation.pytxt classes_pathtrain.pyepochlogs
yolo.pypredict.pyyolo.pymodel_pathclasses_path model_pathlogs classes_pathtxt predict.py
img/street.jpg
_defaults = {
#--------------------------------------------------------------------------#
# model_pathclasses_path
# model_pathlogsclasses_pathmodel_datatxt
# shapemodel_pathclasses_path
#--------------------------------------------------------------------------#
"model_path" : 'model_data/yolo_weights.pth',
"classes_path" : 'model_data/coco_classes.txt',
#---------------------------------------------------------------------#
# anchors_pathtxt
# anchors_mask
#---------------------------------------------------------------------#
"anchors_path" : 'model_data/yolo_anchors.txt',
"anchors_mask" : [[6, 7, 8], [3, 4, 5], [0, 1, 2]],
#---------------------------------------------------------------------#
# 32
#---------------------------------------------------------------------#
"input_shape" : [416, 416],
#---------------------------------------------------------------------#
#
#---------------------------------------------------------------------#
"confidence" : 0.5,
#---------------------------------------------------------------------#
# nms_iou
#---------------------------------------------------------------------#
"nms_iou" : 0.3,
#---------------------------------------------------------------------#
# letterbox_imageresize
# letterbox_imageresize
#---------------------------------------------------------------------#
"letterbox_image" : False,
#-------------------------------#
# Cuda
# GPUFalse
#-------------------------------#
"cuda" : True,
}
img/street.jpg
https://github.com/qqwweee/pytorch-yolo3 https://github.com/eriklindernoren/PyTorch-YOLOv3 https://github.com/BobLiu20/YOLOv3_PyTorch