yolov5 的原始hyp.yaml
时间: 2024-06-03 16:05:39 浏览: 248
课程设计基于YOLOv5的裂缝检测python源码+数据集+训练好的模型.zip
yolov5的原始hyp.yaml是指yolov5中的超参数配置文件,其中包含了模型训练时的各种参数配置,例如学习率、batch size、优化器等。以下是yolov5的原始hyp.yaml的部分内容:
```yaml
# Train
epochs: 300
batch-size: 16
img-size: 640
rect: false
resume: false
nosave: false
notest: false
noautoanchor: false
evolve: null
# Optimizer
optimizer: adam
momentum: 0.937
weight-decay: 0.0005
warmup-epochs: 3.0
warmup-lr: 0.0004
# adjust LR by epoch
lr0: 0.01 # initial learning rate (SGD=1E-2, Adam=1E-3)
lrf: 0.2 # final OneCycleLR learning rate (lr0 * lrf)
momentum-sched: null
# Loss
label-smoothing: 0.0
cls_pw: 1.0
obj_pw: 1.0
iou_t: 0.20
giou: true
fl_gamma: 0.0
# Augmentation
degrees: 10.0
translate: 0.1
scale: 0.5
shear: 0.0
perspective: 0.0
flipud: 0.0
fliplr: 0.5
mosaic: 1.0
mixup: 1.0
# Dataset
name: coco128.yaml
root: /path/to/coco128/
```
阅读全文