tristandeleu / pytorch-meta

A collection of extensions and data-loaders for few-shot learning & meta-learning in PyTorch
https://tristandeleu.github.io/pytorch-meta/
MIT License
1.97k stars 256 forks source link

Download miniimagenet error #163

Open C1nDeRainBo0M opened 1 year ago

C1nDeRainBo0M commented 1 year ago

I use google drive to download and finish.

miniimagenet mini-imagenet.tar.gz

dataset = miniimagenet(..., meta_train=True, download=True)

and i got,

NameError: name 'check_integrity' is not defined

how should i fix this error. thx.

C1nDeRainBo0M commented 1 year ago

I use python=3.6, torch=1.9.0, torchvision = 0.10.0, torchmeta=1.8.

C1nDeRainBo0M commented 1 year ago

I changed if os.path.isfile(fpath) and check_integrity(fpath, md5): in torchmeta\datasets\utils.py toif os.path.isfile(fpath):, then the program runs normally and generates subsequent files. The current output tensor is the correct shape. Is this the correct way to handle it?

I don't find def check_integrity(): in utils.py, is there something wrong with my version? Because I downloaded mini-imagenet.tar.gz manually, is it because this affects the correct operation of the program?