-
Notifications
You must be signed in to change notification settings - Fork 7k
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
ImportError: cannot import name 'DisableTorchFunctionSubclass' from 'torch._C' #7126
Comments
Hi @lukazso
I suspect this is the problem: you're actually not using the nightly version (which should look like You used:
But the official installation instruction suggest
Perhaps try these? Side note: which prototype features are you interested in? If it's about the new transforms, please feel free to provide any feedback you may have in this thread #6753 ! It will help us provide the best user experience. |
Thanks @NicolasHug for the quick feedback! This was indeed the problem. I am also closely following the thread regarding the new transforms (really cool feature). However, now I encounter the following:
This looks similar to me as #7104. I already installed the additional libraries:
Also, I reinstalled torchvision from the repo again after installing the additional libraries. Is there still something wrong with my installation? |
nvjpeg is the nvidia lib for jpeg decoding (unrelated to libjpeg-turbo / libjpeg). I'm not sure why it's not present on your system, it could be another problem with your env. If you don't need GPU-decoding of jpegs (you probably don't), you should be able to bypass the problem by setting |
Hi, I tried using nightly as well but I am still struggling to use from torchvision.prototype import datapoints or simply from torchvision import datapoints. Any fix to it? |
🐛 Describe the bug
Hi all,
I was recently trying to install torchvision from the main branch to include the prototype features. I followed the install procedure specified on the contributor page:
However, when I try to import the protoype features, I run into following problem:
I tried it in a virtual environment as well as a Docker container, both the same results.
Versions
Environment in Docker:
Environment on local machine in virtual environment:
I am not sure if this has to do with the installation procedure from my side or if this is a general thing. Any help would be appreciated!
Thanks
Lukas
The text was updated successfully, but these errors were encountered: