Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The torchvision.transforms.functional_tensor module is deprecated in 0.15 and will be **removed in 0.17**. #251

Open
jnj256 opened this issue Nov 15, 2023 · 2 comments

Comments

@jnj256
Copy link

jnj256 commented Nov 15, 2023

🐛 Use of deprecated torchvision module - requires an update.

On my Python environment with Python version 3.11 and PyTorch version 2.0.0+cu117, I get warnings with the usage of AugMix. The root-cause is the use of deprecated torchvision module -> torchvision.transforms.functional_tensor.

This can be addressed very easily by making minor changes to pytorchvideo->transforms->augmentations.py file.

Please find attached snapshot of the "diff" between current and updated augmentations.py file.

It will help several furture users to fix this and update the library - both here and as PyPI package.

pytorchvideo_diff_augmentation_py

@tornikeo
Copy link

As a workaround, you can use:

pip install git+https://github.com/facebookresearch/pytorchvideo.git

@sanchitv7
Copy link

The workaround of installing directly through git does not work anymore. Any usage of the library throws this error. Even the official video classification demo notebook by HuggingFace does not run.

sanchitv7 added a commit to sanchitv7/pytorchvideo that referenced this issue Aug 13, 2024
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

No branches or pull requests

3 participants