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
AttributeError: module 'torchvision.transforms' has no attribute 'Scale'
I am using torch version and this scale error is coming in my code in line as
transform_list.append(transforms.Scale(osize, method)) #Code line
AttributeError: module 'torchvision.transforms' has no attribute 'Scale'
Versions
transform_list.append(transforms.Scale(osize, method))
AttributeError: module 'torchvision.transforms' has no attribute 'Scale'
The Scale transform has been deprecated since 0.2.0 (> 4 years) and was finally removed in 0.12.0 (#5386). Please follow the warning it emitted in the mean time and use transforms.Resize.
🐛 Describe the bug
AttributeError: module 'torchvision.transforms' has no attribute 'Scale'
I am using torch version and this scale error is coming in my code in line as
transform_list.append(transforms.Scale(osize, method)) #Code line
AttributeError: module 'torchvision.transforms' has no attribute 'Scale'
Versions
transform_list.append(transforms.Scale(osize, method))
AttributeError: module 'torchvision.transforms' has no attribute 'Scale'
cc @vfdev-5 @datumbox
The text was updated successfully, but these errors were encountered: