You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A clear and concise description of what the bug is.
In RandomAffine, the transforms do not center the image first. Consequently, they are applied relative to the top left of the image. That prevents using large parameters: for instance, with a max rotation angle of 180°, most of the time the resulting image will be black because the rotation takes the image out of the valid positions
Reproduction
What command or script did you run?
In your pipeline put
Thanks for your error report and we appreciate it a lot.
Checklist
Describe the bug
A clear and concise description of what the bug is.
In RandomAffine, the transforms do not center the image first. Consequently, they are applied relative to the top left of the image. That prevents using large parameters: for instance, with a max rotation angle of 180°, most of the time the resulting image will be black because the rotation takes the image out of the valid positions
Reproduction
In your pipeline put
And visualize dataloader outputs
Did you make any modifications on the code or config? Did you understand what you have modified?
No
What dataset did you use?
Custom one
Environment
python mmdet/utils/collect_env.py
to collect necessary environment information and paste it here.sys.platform: linux
Python: 3.7.10 (default, Feb 26 2021, 18:47:35) [GCC 7.3.0]
CUDA available: False
MUSA available: False
numpy_random_seed: 2147483648
GCC: gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
PyTorch: 1.9.0
PyTorch compiling details: PyTorch built with:
TorchVision: 0.10.0
OpenCV: 4.10.0
MMEngine: 0.10.6
MMDetection: 3.3.0+78cf2bc
$PATH
,$LD_LIBRARY_PATH
,$PYTHONPATH
, etc.)Error traceback
If applicable, paste the error trackback here.
ARG PYTORCH="1.9.0"
ARG CUDA="11.1"
ARG CUDNN="8"
Bug fix
In mmdet/datasets/transforms/transforms.py/RandomAffine/_get_random_homography_matrix
change the beginning of the function to
end the end to
The text was updated successfully, but these errors were encountered: