Can I set a independent probability in the RandomAffine? #845
-
I hope the scales, degrees, and translation will be applied in independent probability, but I only find a args Now, I tried to do this in the following code (I hope this is right):
But I want to know, have any native way to do this? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello your proposed solution will work, but then be aware that you are performing 3 interpolation (so more bluring than only one interpolation) (this may be important ... or not depending on the application) |
Beta Was this translation helpful? Give feedback.
Hello
no this is not implemented, not sure though why you want this.
A random affine is a mixture of scaling rotation and translation .... and since rotation for instance randomly choose an angle between 0 and 30, there will be cases were there is almost no rotations
your proposed solution will work, but then be aware that you are performing 3 interpolation (so more bluring than only one interpolation) (this may be important ... or not depending on the application)