Skip to content

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

@GreedYLearner1146

Description

@GreedYLearner1146

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions