You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem with torchmeta.datasets in c3lr: cannot import name '_get_confirm_token' from 'torchvision.datasets.utils' (/usr/local/lib/python3.8/site-packages/torchvision/datasets/utils.py)
#1
The github instruction for c3lr is ran on a conda environment but I do want to try running it on colab. I have tried installing the necessary packages, library and requirements based on the list as set out in the environment.yml on the c3lr github but I still got the error as listed above. I have traced the syntax of '_get_confirm_token' to the following torchmeta github code page: https://github.com/tristandeleu/pytorch-meta/blob/master/torchmeta/datasets/utils.py
But the problem is that I cant find the '_get_confirm_token' module anywhere in utils.py.
Is this due to some update/compatibility issue in the torchvision module? Cause I have successfully imported the torchvision and the torchmeta library (even cloning from the latest torchmeta github) but the problem still persists.
Thanks and appreciated for the great help!
The text was updated successfully, but these errors were encountered:
Hi @GreedYLearner1146, thanks for bringing this up! Indeed we discovered this issue as well, this is due to torchmeta no longer being maintained. Unfortunately, we made the choice of using torchmeta before it became clear that it is a dead project. And, it does appear to be a version mismatch issue between torchmeta and torchvision.
The github instruction for c3lr is ran on a conda environment but I do want to try running it on colab. I have tried installing the necessary packages, library and requirements based on the list as set out in the environment.yml on the c3lr github but I still got the error as listed above. I have traced the syntax of '_get_confirm_token' to the following torchmeta github code page: https://github.com/tristandeleu/pytorch-meta/blob/master/torchmeta/datasets/utils.py
in which the module '_get_confirm_token' should be able to be tracable to the vision/utils,py github page: https://github.com/pytorch/vision/blob/main/torchvision/datasets/utils.py.
But the problem is that I cant find the '_get_confirm_token' module anywhere in utils.py.
Is this due to some update/compatibility issue in the torchvision module? Cause I have successfully imported the torchvision and the torchmeta library (even cloning from the latest torchmeta github) but the problem still persists.
Thanks and appreciated for the great help!
The text was updated successfully, but these errors were encountered: