-
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
I am using the torchvision-0.13.1+cu113 version, but it seems that it does not have the datapoints package. How can I solve this issue? #8714
Comments
Hi @jiangsu415 , You are probably looking at some old documentation / tutorial ? May I ask which one (it needs to be updated!) ? |
@jiangsu415 torchvision-0.13.1 doesn't have a datapoints module because the datapoints module was introduced in torchvision 0.15. You might want to upgrade your environment to 0.15 if you want to use the datapoints module. Also as Nicolas mentioned, in the later versions it was renamed, so you might want to look at the |
@abhi-glitchhg , @NicolasHug , @jiangsu415 0.20.1
Traceback (most recent call last):
File "/home/elie/gitclones/zcrop/utils.py", line 11, in <module>
from torchvision import datapoints
ImportError: cannot import name 'datapoints' from 'torchvision' (/home/dude/miniforge3/envs/test/lib/python3.12/site-packages/torchvision/__init__.py) did anything changes? |
Yes, Refer to Nicolas' comments above. If you are using 0.20, you should use tv_tensors as datapoints was renamed to tv_tensors. |
I'll close this issue as the original problem has been addressed. @eliethesaiyan , can I ask which resource you used that mentioned |
🐛 Describe the bug
I am using the torchvision-0.13.1+cu113 version, but it seems that it does not have the datapoints package. How can I solve this issue?
Versions
I am using the torchvision-0.13.1+cu113 version, but it seems that it does not have the datapoints package. How can I solve this issue?
The text was updated successfully, but these errors were encountered: