InferenceSize vs the input size #24563
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
👋 Hello @Praso28, thank you for the detailed discussion and for sharing your experiment results and visuals 🚀 This is an automated response to help get things moving quickly, and an Ultralytics engineer will also assist you soon. We recommend a visit to the Docs for new users, where you can find many Python and CLI usage examples and where many common questions may already be answered. If this turns out to be a 🐛 Bug Report, please provide a minimum reproducible example to help us debug it. Since this appears related to custom training and inference behavior ❓, please provide as much information as possible, including: Join the Ultralytics community where it suits you best. For real-time chat, head to Discord 🎧 Prefer in-depth discussions? Check out Discourse. Or dive into threads on our Subreddit to share knowledge with the community. UpgradeUpgrade to the latest pip install -U ultralyticsEnvironmentsYOLO may be run in any of the following up-to-date verified environments (with all dependencies including CUDA/CUDNN, Python and PyTorch preinstalled): -Notebooks with free GPU: StatusIf this badge is green, all Ultralytics CI tests are currently passing. CI tests verify correct operation of all YOLO Modes and Tasks on macOS, Windows, and Ubuntu every 24 hours and on every commit. |
Beta Was this translation helpful? Give feedback.
-
|
hi @Praso28, thanks for the detailed write-up. on your first question - yes. with the default a few general points that usually explain this kind of result:
see the predict arguments and training tips for details. results depend on your data and domain, but these are the patterns that usually apply here. |
Beta Was this translation helpful? Give feedback.


hi @Praso28, thanks for the detailed write-up.
on your first question - yes. with the default
imgsz=640, a 1056x1600 image is letterboxed down to 640x640: aspect ratio is preserved and the rest is padded, so the image is not stretched. a list likeimgsz=[1056,1600](both already multiples of the stride 32) feeds the image at close to native size instead.a few general points that usually explain this kind of result: