yolov5训练表示识别模型日志记录

yolov5训练表示识别模型日志记录

1、标注数据

 

2、整理数据

3、训练:修改:myvoc.yaml

train: VOC_2022060901/train.txt
val: VOC_2022060901/val.txt

# number of classes
nc: 1

# class names
names: ["M_beacom"]

 

4、开始训练

python train_20220609.py --batch-size 2 --epochs 100 --data ./data/myvoc.yaml --cfg ./models/yolov5m.yaml --workers 0 

 

训练日志:

 

  

 

 

5、训练完毕,查看模型相关参数

 

 

 
 
 

6、调用最优模型测试

python detect_2022061101.py  --weights runs/train/exp/weights/best.pt --source data/img

 

 检测日志:

 

复制代码
(wind_2021) F:\PytorchProject\yolov5_train_M_beacon>python detect_2022050901.py  --weights runs/train/exp/weights/best.pt --source data/img
Namespace(agnostic_nms=False, augment=False, classes=None, conf_thres=0.65, device='', exist_ok=False, img_size=640, iou_thres=0.45, name='exp', project='runs/detect', save_conf=False, save_txt=False, source='data/img', update=False, view_img=False, weights=['runs/train/exp/weights/best.pt'])
Using torch 1.8.1+cu111 CUDA:0 (NVIDIA GeForce RTX 3080 Laptop GPU, 16383.5MB)


Fusing layers...
Model Summary: 308 layers, 21037638 parameters, 0 gradients, 50.3 GFLOPS
image 1/11 F:\PytorchProject\yolov5_train_M_beacon\data\img\IMG_20220608_203245.jpg: 640x480 1 M_beacoms, Done. (0.025s)
image 2/11 F:\PytorchProject\yolov5_train_M_beacon\data\img\IMG_20220608_203249.jpg: 640x480 1 M_beacoms, Done. (0.017s)
image 3/11 F:\PytorchProject\yolov5_train_M_beacon\data\img\IMG_20220608_203259.jpg: 640x480 1 M_beacoms, Done. (0.015s)
image 4/11 F:\PytorchProject\yolov5_train_M_beacon\data\img\IMG_20220608_203434.jpg: 640x480 1 M_beacoms, Done. (0.033s)
image 5/11 F:\PytorchProject\yolov5_train_M_beacon\data\img\IMG_20220608_203512.jpg: 640x480 1 M_beacoms, Done. (0.037s)
image 6/11 F:\PytorchProject\yolov5_train_M_beacon\data\img\IMG_20220608_203515.jpg: 640x480 1 M_beacoms, Done. (0.048s)
image 7/11 F:\PytorchProject\yolov5_train_M_beacon\data\img\IMG_20220608_203814.jpg: 640x480 1 M_beacoms, Done. (0.074s)
image 8/11 F:\PytorchProject\yolov5_train_M_beacon\data\img\IMG_20220608_203822.jpg: 640x480 1 M_beacoms, Done. (0.068s)
image 9/11 F:\PytorchProject\yolov5_train_M_beacon\data\img\IMG_20220608_204241.jpg: 640x480 4 M_beacoms, Done. (0.062s)
image 10/11 F:\PytorchProject\yolov5_train_M_beacon\data\img\IMG_20220608_204614.jpg: 640x480 1 M_beacoms, Done. (0.070s)
image 11/11 F:\PytorchProject\yolov5_train_M_beacon\data\img\IMG_20220608_212614.jpg: 640x480 1 M_beacoms, Done. (0.080s)
Results saved to runs\detect\exp44
Done. (5.951s)

(wind_2021) F:\PytorchProject\yolov5_train_M_beacon>
(wind_2021) F:\PytorchProject\yolov5_train_M_beacon>
复制代码

 

 
 
检测效果:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

#####################

posted @   西北逍遥  阅读(265)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示