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

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

Open
GreedYLearner1146 opened this issue Feb 15, 2023 · 2 comments

Comments

@GreedYLearner1146
Copy link

Problem2

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

prob 1

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!

@ojss
Copy link
Owner

ojss commented Feb 15, 2023

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.

However, please refer to the instructions in our newer work on how to still make it work by manually downloading the datasets and placing them in a directory: https://github.com/ojss/SAMPTransfer/#running-experiments.

Thanks again for taking interest in our work!
-Ojas

@GreedYLearner1146
Copy link
Author

Hi Ojas, Thanks very much for your assistance again! I will try it out!

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

2 participants