-
由 janus-zheng 提交于
Update common.py We have a division at line 694, and then a multiplication at line 695, so it makes `y*g` not an integer. And since `shape1` will be used at line 697 to ensure the size is divisible by the `stride`, this may lead to different image size. In my experiment, my image is [640, 640], it's divisible by the default stride 32, but I found that the result is changed to [672, 672] after line 697. So the final detection result is slightly different from that directly using the `detect.py` script, which does not call the AutoShape methods. Signed-off-by:
janus-zheng <106574221+janus-zheng@users.noreply.github.com> Signed-off-by:
janus-zheng <106574221+janus-zheng@users.noreply.github.com> Co-authored-by:
Glenn Jocher <glenn.jocher@ultralytics.com>