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
thanks for testing and reporting @function2-llx, that's a good point, the bug was not detected earlier because we used the same transform instance to verify lazy/non-lazy consistency in this case
Fixes#6773.
### Description
Call `rand_affine_grid()` once before call
`rand_affine_grid.get_transformation_matrix()`, since its documented as
"Get the most recently applied transformation matrix", or the `.affine`
attribute will not be set.
Also, set `randomize=False` here since randomization if performed in the
beginning of the function.
### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not
applicable items -->
- [x] Non-breaking change (fix or new feature that would not break
existing functionality).
- [ ] Integration tests passed locally by running `./runtests.sh -f -u
--net --coverage`.
- [ ] Quick tests passed locally by running `./runtests.sh --quick
--unittests --disttests`.
---------
Signed-off-by: function2 <function2-llx@outlook.com>
Co-authored-by: Wenqi Li <831580+wyli@users.noreply.github.com>
Describe the bug
When using
RandAffine
withlazy=True
, it does not perform any transform at all.To Reproduce
Actual Result
The text was updated successfully, but these errors were encountered: