yoloair icon indicating copy to clipboard operation
yoloair copied to clipboard

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]"

Open martinkeith opened this issue 2 years ago • 1 comments

Search before asking

  • [X] I have searched the YOLOAir issues and found no similar questions.

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 avatar Oct 07 '22 05:10 martinkeith

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

martinkeith avatar Oct 08 '22 05:10 martinkeith