yolov4报错:mosaic=1-compile Darknet with Opencv for using mosaic=1

朱经武
2023-12-01

记录一下吧

 mosaic=1 - compile Darknet with OpenCV for using mosaic=1

 mosaic=1 - compile Darknet with OpenCV for using mosaic=1

 mosaic=1 - compile Darknet with OpenCV for using mosaic=1

 mosaic=1 - compile Darknet with OpenCV for using mosaic=1

 mosaic=1 - compile Darknet with OpenCV for using mosaic=1

 mosaic=1 - compile Darknet with OpenCV for using mosaic=1

 mosaic=1 - compile Darknet with OpenCV for using mosaic=1

 mosaic=1 - compile Darknet with OpenCV for using mosaic=1

 mosaic=1 - compile Darknet with OpenCV for using mosaic=1

 mosaic=1 - compile Darknet with OpenCV for using mosaic=1

 mosaic=1 - compile Darknet with OpenCV for using mosaic=1

 mosaic=1 - compile Darknet with OpenCV for using mosaic=1

 mosaic=1 - compile Darknet with OpenCV for using mosaic=1

 mosaic=1 - compile Darknet with OpenCV for using mosaic=1

 mosaic=1 - compile Darknet with OpenCV for using mosaic=1

执行训练命令时出现了这个   
这个报错以我这比较水的英文字面理解为  :用OpenCV编译Darknet,使用 mosaic=1

关键在于 mosaic=1    这个再cfg文件中找到了  将其改为0

一般如果你改动不大的话  在第26行

[net]
# Testing
#batch=1
#subdivisions=1
# Training
batch=96
subdivisions=8
width=608
height=608
channels=24
momentum=0.949
decay=0.0005
angle=0
saturation = 1.5
exposure = 1.5
hue=.1

learning_rate=0.001
burn_in=1000
max_batches = 500500
policy=steps
steps=400000,450000
scales=.1,.1

#cutmix=1
mosaic=1

#:104x104 54:52x52 85:26x26 104:13x13 for 416

[convolutional]
batch_normalize=1
filters=32
size=3
stride=1
pad=1
activation=mish

重新测试   可以了

 类似资料: