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

MiniImagenet Integrity Check Failure #3

Open
venuv opened this issue Mar 20, 2020 · 6 comments
Open

MiniImagenet Integrity Check Failure #3

venuv opened this issue Mar 20, 2020 · 6 comments

Comments

@venuv
Copy link

venuv commented Mar 20, 2020

Hello, This seems like an error in my torchmeta setup, but wanted to get your perspective if otherwise. thanks in advance - VV

(dsai20) dg8965@mb-qs-pp-v100:~/GBML$ python3 main.py --alg=Reptile
using gpu: 0
Traceback (most recent call last):
File "main.py", line 225, in
main(args)
File "main.py", line 115, in main
target_transform=Categorical(num_classes=args.num_way)
File "/home/dg8965/.conda/envs/dsai20/lib/python3.6/site-packages/torchmeta/datasets/miniimagenet.py", line 89, in init
download=download)
File "/home/dg8965/.conda/envs/dsai20/lib/python3.6/site-packages/torchmeta/datasets/miniimagenet.py", line 127, in init
raise RuntimeError('MiniImagenet integrity check failed')
RuntimeError: MiniImagenet integrity check failed

@Franklin-Yao
Copy link

This is very simple to solve. put all your files in data_path/miniimagenet/.
If you put a breakpoint there, you can find this solution by yourself.

@renesax14
Copy link

If you put a breakpoint there, you can find this solution by yourself.

Put a breakpoint where? And then what do I check?

@kgarg8
Copy link

kgarg8 commented Jul 23, 2020

https://github.com/sungyubkim/GBML/blob/master/main.py#L115
just add
,download=True

@brando90
Copy link

https://github.com/sungyubkim/GBML/blob/master/main.py#L115
just add
,download=True

I do have download true...

import torch

import torchvision.transforms as transforms

from torchmeta.datasets.helpers import miniimagenet
from torchmeta.utils.data import BatchMetaDataLoader

from tqdm import tqdm

from pathlib import Path

meta_split = 'train'
data_path = Path('~/data/').expanduser()
dataset = miniimagenet(data_path, ways=5, shots=5, test_shots=15, meta_split=meta_split, download=True)
dataloader = BatchMetaDataLoader(dataset, batch_size=16, num_workers=4)
print(f'len normal = {len(dataloader)}')

num_batches = 10
with tqdm(dataloader, total=num_batches) as pbar:
    for batch_idx, batch in enumerate(pbar):
        train_inputs, train_targets = batch["train"]
        print(train_inputs.size())
        # print(batch_idx)
        if batch_idx >= num_batches:
            break

print('success\a')

@brando90
Copy link

@brando90
Copy link

I am going to try to send my local copies after deleting all the HPC copies.

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

5 participants