Skip to content

Conversation

@Niccari
Copy link
Contributor

@Niccari Niccari commented Apr 11, 2025

This PR fixes issue #561 that occurs in torchvision >= 0.21.

In #8787 of torchvision 0.21, the _transform function of the Transform class was renamed to transform. The function was referenced from forward function, but since transform was not overridden in ConvertBox and ConvertPILImage, a NotImplementedError occurred.
For backward compatibility of dependencies, _transform is left in the transform function.

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.

2 participants