cnaps
cnaps copied to clipboard
Questions about changing the dataset
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!
Or perhaps you could post the checkpoint? The model in Table 1.1 that uses miniImagenet as a training set.
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.