New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Random rotate without cropping side #1118
Comments
BTW, It is not easy to do Mirror for image and mask at the same time. In my case CropMirrorNorm output wrong mask(i.e. value in msak is not 0/1). FastResizeCrop cannot be used, since mask require resize with inter_NN. |
I'm currently reworking all warping operators (rotate, warp affine, etc). New rotate will enlarge canvas to accommodate whole image, while new WarpAffine will accept externally provided canvas size. It should be available quite soon, but I can't commit to any particular release. |
@mzient Looking forward to your later commit! |
I have the same needs,is there any new solution now? |
Hi, |
Regarding rotate: the new rotate automatically adjusts canvas size to fit the image. Just download the new version and you're set. You can reuse the angles tensor for images and masks, too. |
This change is available in DALI 0.16.0. |
Hi, i would like to create random rotate/warpaffine operator without cropping side like OpenCV Python : rotate image without cropping sides.
Firstly I suppose it can be done using Paste+rotate. However, random parameter pass to rotate operator cannot be known. Thus I cannot do padding before rotate. Any suggestion on this problem?
The text was updated successfully, but these errors were encountered: