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
It is sometimes the case that the dataset you鈥檙e working on contains objects always in the same position and you want to keep that property during the augmentation. I suggest to add an argument to the RandomAffine and RandomPerspective transforms that, when enable, locate the old center of the image in the transformed one and translate it back to the center. Also, it maybe be useful to extend this feature to any arbitrary point, so that, if one point is specified in the original image, it will get translated back to its original place after the transformation
Versions
torchivision 0.18.1
The text was updated successfully, but these errors were encountered:
馃悰 Describe the bug
It is sometimes the case that the dataset you鈥檙e working on contains objects always in the same position and you want to keep that property during the augmentation. I suggest to add an argument to the RandomAffine and RandomPerspective transforms that, when enable, locate the old center of the image in the transformed one and translate it back to the center. Also, it maybe be useful to extend this feature to any arbitrary point, so that, if one point is specified in the original image, it will get translated back to its original place after the transformation
Versions
torchivision 0.18.1
The text was updated successfully, but these errors were encountered: