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

question about dataset #53

Open
changykang opened this issue May 25, 2021 · 10 comments
Open

question about dataset #53

changykang opened this issue May 25, 2021 · 10 comments

Comments

@changykang
Copy link

hi,i download the dataset from the link, but they donot include lable files, can you help me solve this problem. thank you.

@yaoyao-liu
Copy link
Owner

Thanks for your interest in our work.

You don't need the label files. The images for one class are saved in a corresponding folder.
You may use the provided dataloader to generate episodes for few-shot learning.

@changykang
Copy link
Author

thank you solve my problem,and can i directly run the run_experiment.py in tensorflow?

@yaoyao-liu
Copy link
Owner

Yes. After you install all the requirements and put the data in the proper directory, you may run the command line following the README.md file.

@changykang
Copy link
Author

ok, thank you reply, when i install tensorflow-gpu=1.3.0 under the python=2.7, it shown packagenotfounderror, can you help me.

@yaoyao-liu
Copy link
Owner

If the packages can not be directly downloaded, you may build TensorFlow 1.3.0 according to this link.

@changykang
Copy link
Author

Thank you for solving my problem patiently

@changykang
Copy link
Author

i have another question about the dataset, what is the dataset in the meta-train and meta-test, and how did you split the support set and query set in the miniImageNet dataset? thank you

@yaoyao-liu
Copy link
Owner

The splits of miniImageNet are available here.
There are two different splits for miniImageNet. Most papers follow the split provided by Vinyals et al.

During the meta-training phase, the support and query sets of each episode/task are randomly sampled from the training set of miniImageNet. During the meta-test phase, the support and query sets of each episode/task are randomly sampled from the test set of miniImageNet. You may easily find the generation protocol in any few-shot learning paper, e.g., MAML.

@changykang
Copy link
Author

That is, in the large-scale phase, 64 classes are used for training; the meta-training phase is randomly sampled; the meta-teste stage uses the test data of miniimagenet. Am I right?

@yaoyao-liu
Copy link
Owner

During the pre-train phase, we train the encoder on a 64-way classification task using the meta-train set.

During the meta-train phase, we train the meta model on many 5-way small classification tasks generated from the meta-train set.

During the meta-test phase, we evaluate the model on many 5-way small classification tasks generated from the meta-test set.

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