iscyy / yoloair

🔥🔥🔥 专注于YOLOv5,YOLOv7、YOLOv8、YOLOv9改进模型,Support to improve backbone, neck, head, loss, IoU, NMS and other modules🚀
https://github.com/iscyy/yoloair
GNU General Public License v3.0
2.51k stars 430 forks source link

acmix."RuntimeError: Padding size should be less than the corresponding input dimension, but got: padding (3, 3) at dimension 2 of input [16, 128, 3, 6]" #114

Open martinkeith opened 2 years ago

martinkeith commented 2 years ago

Search before asking

Question

when I used the "yolo5s_acmix.yaml" from the project. I added the commond option " parser.add_argument('--acmix', action='store_true', help='useacmix')" in train.py image and added the val.run(... half = not opt.acmix) in train.py image

use the commond: python train.py --cfg ./configs/attention/yolovs_acmix.yaml --acmix image

I got the error:

RuntimeError: Padding size should be less than the corresponding input dimension, but got: padding (3, 3) at dimension 2 of input [16, 128, 3, 6] image

so, what's wrong with me?

Additional

No response

martinkeith commented 2 years ago

I got it. just change the image size from 160 to 640(or other size)