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

Questions about changing the dataset #14

Open
SmartNight-cc opened this issue Aug 2, 2023 · 2 comments
Open

Questions about changing the dataset #14

SmartNight-cc opened this issue Aug 2, 2023 · 2 comments

Comments

@SmartNight-cc
Copy link

Hello, I am a few-shot learning beginner. I was very interested in your work, but I ran into this problem while trying to change the training data set to miniImagenet:
RuntimeError: No dataset_spec file found in directory /home/cnaps/filelists/miniImagenet
Can you help me solve it? Looking forward to your reply!

@SmartNight-cc
Copy link
Author

Or perhaps you could post the checkpoint? The model in Table 1.1 that uses miniImagenet as a training set.

@jfb54
Copy link
Collaborator

jfb54 commented Aug 5, 2023

Hello - Thanks for the question. The CNAPs code uses the meta-dataset reader which requires data to be pre-processed into tfrecords. An example of doing this can be found in the file src/prepare_extra_datasets.py. More examples can be found in the meta-dataset repo: https://github.com/google-research/meta-dataset/blob/main/meta_dataset/dataset_conversion/convert_datasets_to_records.py.

We never evaluated CNAPs on miniImageNet since the full version of ImageNet is used in training and evaluation, which is a better indication of performance. The results in Table 1 in the TaskNorm paper use the MAML algorithm, not CNAPs.

Note that much of the few-shot learning community has moved on to zero-shot models such as CLIP https://arxiv.org/pdf/2103.00020.pdf which are very effective.

Hope this helps.

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