Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AutoShape integer image-size fix (#10090)
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 <[email protected]> Signed-off-by: janus-zheng <[email protected]> Co-authored-by: Glenn Jocher <[email protected]>
- Loading branch information