facebookresearch / pytorchvideo

A deep learning library for video understanding research.

Home Page:https://pytorchvideo.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot access attributes or functions of pytorchvideo

Tristan-J opened this issue Β· comments

πŸ› Bugs / Unexpected behaviors

NOTE: Please look at the existing list of Issues tagged with the label 'bug`. Only open a new issue if this bug has not already been reported. If an issue already exists, please comment there instead..

Instructions To Reproduce the Issue:

Please include the following (depending on what the issue is):

  1. Any changes you made (git diff) or code you wrote
import pytorchvideo
pytorchvideo.transforms.create_video_transform(mode='val')

  1. The exact command(s) you ran: in linux bash
  2. What you observed (including the full logs):
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'pytorchvideo' has no attribute 'transforms'

Please also simplify the steps as much as possible so they do not require additional resources to
run, such as a private dataset, models, etc.

I followed the instructions on this https://github.com/facebookresearch/pytorchvideo/blob/main/INSTALL.md page. I tried all three methods but all failed. I let it show all options after pytorchvideo., and here's the output:

>>> pytorchvideo.
pytorchvideo.__cached__          pytorchvideo.__gt__(             pytorchvideo.__path__
pytorchvideo.__class__(          pytorchvideo.__hash__(           pytorchvideo.__reduce__(
pytorchvideo.__delattr__(        pytorchvideo.__init__(           pytorchvideo.__reduce_ex__(
pytorchvideo.__dict__            pytorchvideo.__init_subclass__(  pytorchvideo.__repr__(
pytorchvideo.__dir__(            pytorchvideo.__le__(             pytorchvideo.__setattr__(
pytorchvideo.__doc__             pytorchvideo.__loader__          pytorchvideo.__sizeof__(
pytorchvideo.__eq__(             pytorchvideo.__lt__(             pytorchvideo.__spec__
pytorchvideo.__file__            pytorchvideo.__name__            pytorchvideo.__str__(
pytorchvideo.__format__(         pytorchvideo.__ne__(             pytorchvideo.__subclasshook__(
pytorchvideo.__ge__(             pytorchvideo.__new__(            pytorchvideo.__version__
pytorchvideo.__getattribute__(   pytorchvideo.__package__         

I created the environment with conda create -n v_process python=3.7, and then installed pytorchvideo with pip. The cuda version is 11.4.

Thanks!