Hey leo
Thank you for your attention. There’s no solution
Although it should take the size as a list
train.py → utils/general.py
def check_img_size(imgsz, s=32, floor=0):
# Verify image size is a multiple of stride s in each dimension
if isinstance(imgsz, int): # integer i.e. img_size=640
new_size = max(make_divisible(imgsz, int(s)), floor)
else: # list i.e. img_size=[640, 480]
imgsz = list(imgsz) # convert to list if tuple
new_size = [max(make_divisible(x, int(s)), floor) for x in imgsz]
if new_size != imgsz:
LOGGER.warning(f'WARNING ⚠️ --img-size {imgsz} must be multiple of max stride {s}, updating to {new_size}')
return new_size
The solution I highlighted is from the YOLOv5 GitHub repo and we (Roboflow) don’t maintain that. For any issues that relate directly to YOLOv5, I suggest following up in that issue or creating a new issue there. Of course, for any Roboflow related issues or questions, please let us know here.