ImageClassification-PyTorch icon indicating copy to clipboard operation
ImageClassification-PyTorch copied to clipboard

solved the issue

Open Aavishkar04 opened this issue 1 year ago • 0 comments

Resolved the issue related to deprecated methods in the torchvision library, specifically the use of transforms.RandomSizedCrop and transforms.Scale. These methods are outdated and should be replaced with transforms.RandomResizedCrop and transforms.Resize, respectively.

Solution:

Updated the data transformations to replace deprecated methods with their recommended alternatives. Changes:

Replaced transforms.RandomSizedCrop(224) with transforms.RandomResizedCrop(224). Replaced transforms.Scale(256) with transforms.Resize(256). This resolves the warnings regarding deprecated transforms and ensures the code adheres to the latest version of the torchvision library.

Aavishkar04 avatar Oct 13 '24 17:10 Aavishkar04