Closed Samuel-wei closed 9 months ago
Perform: -- conf 0.1
if_rotate = True #0.6-0.7 True if_flip = True #0.5-0.6 True if_contrast_and_brightness = False #0.4-0.5 True if_crop = False #0.3-0.4 True
From the weights:
$ docker exec -it yolov7_pytorch_devel python3 train.py --epochs 100 --workers 4 --device 0 --batch-size 32 --data data/battery.yaml --img 640 640 --cfg cfg/training/battery-tiny.yaml --weights '/home/workspace/yolov7/runs/train/small_defect_JinChuan_V6.3/weights/best.pt' --name small_defect_JinChuan_V6.3.2 --hyp data/hyp.scratch.tiny.yaml
Perform: -- conf 0.1
if_rotate = True #0.6-0.7 True if_flip = True #0.5-0.6 True if_contrast_and_brightness = False #0.4-0.5 True if_crop = False #0.3-0.4 True
$ docker exec -it yolov7_pytorch_devel python3 BatteryDetect.py --weights /home/workspace/yolov7/runs/train/small_defect_JinChuan_V6.3.2/weights/best.pt --conf 0.1 --img-size 640 --device 0 --source /home/workspace/BatteryDataSet/Data_xml/TestData/NG_14_20220907
From the weights:
$ docker exec -it yolov7_pytorch_devel python3 train.py --epochs 100 --workers 4 --device 0 --batch-size 32 --data data/battery.yaml --img 640 640 --cfg cfg/training/battery-tiny.yaml --weights '/home/workspace/yolov7/runs/train/small_defect_JinChuan_V6.3/weights/best.pt' --name small_defect_JinChuan_V6.3.3 --hyp data/hyp.scratch.tiny.yaml
Add new dataset and augmentation: /home/workspace/BatteryDataSet/Data_xml/small_defect_JinChuan_V6.3/0.1-0.2/(1563) Perform: -- conf 0.1
if_rotate = True #0.6-0.7 True if_flip = True #0.5-0.6 True if_contrast_and_brightness = False #0.4-0.5 True if_crop = False #0.3-0.4 True
camera-0123, total: 13160 1./home/workspace/BatteryDataSet/Data_xml/small_defect_JinChuan_V6.3/train_images(13160) 2./home/workspace/BatteryDataSet/Data_xml/small_defect_JinChuan_V6.3/train_xmls(13160)
$ docker exec -it yolov7_pytorch_deve python3 BatteryDetect.py --weights /home/workspace/yolov7/runs/train/small_defect_JinChuan_v6.3.0/weights/best.pt --conf 0.1 --img-size 640 --device 0 --source /home/workspace/BatteryDataSet/Data_xml/small_defect_JinChuan_V6.3/val_images/`
Add new dataset from get the 0.1-0.5 to augmentation with rotate parameter:
if_rotate = True
$ docker exec -it yolov7_pytorch_devel python3 train.py --epochs 100 --workers 4 --device 0 --batch-size 32 --data data/battery.yaml --img 640 640 --cfg cfg/training/battery-tiny.yaml --weights '/home/workspace/yolov7/runs/train/small_defect_JinChuan_V6.3/weights/best.pt' --name small_defect_JinChuan_V6.3.3 --hyp data/hyp.scratch.tiny.yaml
$ docker exec -it yolov7_pytorch_devel python3 BatteryDetect.py --weights /home/workspace/yolov7/runs/train/small_defect_JinChuan_V6.3.4/weights/best.pt --conf 0.1 --img-size 640 --device 0 --source /home/workspace/BatteryDataSet/Data_xml/TestData/NG_14_20220907
Camera-0123, total:
Camera-0123, total: 1477
$ docker exec -it yolov7_pytorch_devel python3 train.py --epochs 100 --workers 4 --device 0 --batch-size 32 --data data/battery.yaml --img 640 640 --cfg cfg/training/battery-tiny.yaml --weights '/home/workspace/yolo_weights/yolov7-tiny.pt' --name small_defect_JinChuan_V6.3.5 --hyp data/hyp.scratch.tiny.yaml
docker exec -it yolov7_pytorch_devel python3 BatteryDetect.py --weights /home/workspace/BatteryDetect/models/14_defect_JinChuan_V6.3.5/weights/best.pt --conf 0.3 --img-size 640 --device 0 --source /home/workspace/BatteryDataSet/Data_xml/TestData/NG_14_20220907
docker exec -it yolov7_pytorch_devel python3 BatteryDetect.py --weights /home/workspace/BatteryDetect/models/14_defect_JinChuan_V6.3.5/weights/best.pt --conf 0.3 --img-size 640 --device 0 --source /home/workspace/BatteryDataSet/Data_xml/small_defect_JinChuan_V6/val_14_FP_V6.1.1_N5
docker exec -it yolov7_pytorch_devel python3 BatteryDetect.py --weights /home/workspace/BatteryDetect/models/14_defect_JinChuan_V6.3.5/weights/best.pt --conf 0.3 --img-size 640 --device 0 --source /home/workspace/BatteryDataSet/Data_xml/small_defect_JinChuan_V6/small_14_ok_V5.1.0_tp
August 6, 2023 晋川数据训练--小料
Training Version: small_defect_JinChuan_V6.3
Validation dataset
Test-dev
$
docker exec -it yolov7_pytorch_devel python3 python3 BatteryDetect.py --weights /home/workspace/BatteryDetect/models/14_defect_JinChuan_V6.3/weights/best.pt --conf 0.3 --img-size 640 --device 0 --source /home/workspace/Batt eryDataSet/Data_xml/TestData/NG_14_20220907
docker exec -it yolov7_pytorch_devel python3 BatteryDetect.py --weights /home/workspace/BatteryDetect/models/14_defect_JinChuan_V6.3/weights/best.pt --conf 0.3 --img-size 640 --device 0 --source /home/workspace/BatteryDataSet/Data_xml/small_defect_JinChuan_V6/val_14_FP_V6.1.1_N5
python3 BatteryDetect.py --weights /home/workspace/BatteryDetect/models/14_defect_JinChuan_V6.3/weights/best.pt --conf 0.3 --img-size 640 --device 0 --source /home/workspace/BatteryDataSet/Data_xml/small_defect_JinChuan_V6/small_14_ok_V5.1.0_tp
Result
August 26, 2023,晋川数据训练--小料
Training Version: small_defect_JinChuan_V6.3.0
Validation dataset
Test-dev
$
docker exec -it yolov7_pytorch_devel python3 BatteryDetect.py --weights /home/workspace/yolov7/runs/train/small_defect_JinChuan_V6.3/weights/best.pt --conf 0.1 --img-size 640 --device 0 --source /home/workspace/BatteryDataSet/Data_xml/TestData/NG_14_20220907
Result