facebookresearch / pytorchvideo

A deep learning library for video understanding research.
https://pytorchvideo.org/
Apache License 2.0
3.28k stars 402 forks source link

Import error with torchvision 0.17 #258

Open jramapuram opened 7 months ago

jramapuram commented 7 months ago

🐛 Bugs / Unexpected behaviors

    import pytorchvideo.transforms as PV
  File "/miniconda/lib/python3.10/site-packages/pytorchvideo/transforms/__init__.py", line 3, in 
    from .augmix import AugMix  # noqa
  File "/miniconda/lib/python3.10/site-packages/pytorchvideo/transforms/augmix.py", line 6, in 
    from pytorchvideo.transforms.augmentations import (
  File "/miniconda/lib/python3.10/site-packages/pytorchvideo/transforms/augmentations.py", line 9, in 
    import torchvision.transforms.functional_tensor as F_t

Instructions To Reproduce the Issue:

abrhamkg commented 6 months ago

You can do the following to get rid of this error.

git clone git clone https://github.com/facebookresearch/pytorchvideo.git
cd pytorchvideo
pip install -e .
talesa commented 6 months ago

@NicolasHug would you be able to release the current version of main to PyPI as pytorchvideo==0.1.6, pretty please? 🙏

NicolasHug commented 6 months ago

I'll try to see what I can do - no guarantees.

The PyPI project is owned by @haooooooqi - Haoqi any chance you'd be available to transfer the PyPI ownership?

tornikeo commented 5 months ago

In the meantime just use:

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

It will be a while before pip package catches up.