Skip to content

Commit

Permalink
Argument size now is optional
Browse files Browse the repository at this point in the history
  • Loading branch information
ccanamero committed Aug 21, 2024
1 parent e2241da commit 434021b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mmcls/datasets/pipelines/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ class Resize(object):
"""

def __init__(self,
size,
size=None,
interpolation='bilinear',
adaptive_side='short',
backend='cv2',
Expand All @@ -715,6 +715,7 @@ def __init__(self,

self.adaptive_side = adaptive_side
self.adaptive_resize = False
self.size = img_scale
if isinstance(size, int):
assert size > 0
size = (size, size)
Expand Down

0 comments on commit 434021b

Please sign in to comment.