I used a model for image detection, and I have this warning as output:
WARNING ⚠️ imgsz=[720, 1280] must be multiple of max stride 32, updating to [736, 1280]
I’d like to resize my image something like:
uploaded_image = PIL.Image.open(source_img)
wpercent = (base_width / float(uploaded_image.size[0]))
hsize = int((float(uploaded_image.size[1]) * float(wpercent)))
uploaded_image = uploaded_image.resize((base_width, hsize), Image.Resampling.LANCZOS)
image_width, image_height = uploaded_image.size
But maintained multiple of max stride 32 and not the percentual proportion in the code above.
Please, any help with it?