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

Cannot access attributes or functions of pytorchvideo #239

Open
Tristan-J opened this issue Apr 14, 2023 · 0 comments
Open

Cannot access attributes or functions of pytorchvideo #239

Tristan-J opened this issue Apr 14, 2023 · 0 comments

Comments

@Tristan-J
Copy link

🐛 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!

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

1 participant