Git Product home page Git Product logo

Comments (6)

kgarg8 avatar kgarg8 commented on June 10, 2024 1

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

from gbml.

Franklin-Yao avatar Franklin-Yao commented on June 10, 2024

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.

from gbml.

renesax14 avatar renesax14 commented on June 10, 2024

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

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

from gbml.

brando90 avatar brando90 commented on June 10, 2024

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')

from gbml.

brando90 avatar brando90 commented on June 10, 2024

hopefully this will solve it: https://stackoverflow.com/questions/64451179/how-does-one-resolve-the-miniimagenet-data-integrity-issue-with-torchmeta

from gbml.

brando90 avatar brando90 commented on June 10, 2024

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

from gbml.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.