-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Unified inputs for T.RandomAffine
transformation (2292)
#2478
Unified inputs for T.RandomAffine
transformation (2292)
#2478
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2478 +/- ##
==========================================
+ Coverage 68.82% 71.46% +2.64%
==========================================
Files 94 94
Lines 7974 8320 +346
Branches 1267 1420 +153
==========================================
+ Hits 5488 5946 +458
+ Misses 2082 1947 -135
- Partials 404 427 +23
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot!
@@ -734,14 +733,14 @@ def __init__(self, size, scale=(0.08, 1.0), ratio=(3. / 4., 4. / 3.), interpolat | |||
|
|||
@staticmethod | |||
def get_params( | |||
img: Tensor, scale: Tuple[float, float], ratio: Tuple[float, float] | |||
img: Tensor, scale: List[float], ratio: List[float] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes in this function seem unrelated to the whole goal of the PR.
For the next time, can you please factor them out in a different PR?
* [WIP] Unified input for T.RandomAffine * Unified inputs for T.RandomAffine transformation * Update transforms.py * Updated docs of F.affine fillcolor * Update transforms.py
Related to #2292
Description:
T.RandomAffine
transformationAdditionally:
RandomResizedCrop
to accept both types tuples and lists (scripted and non-scripted versions)