Skip to content

Conversation

@Aavishkar04
Copy link

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.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant