fewshot-CAN icon indicating copy to clipboard operation
fewshot-CAN copied to clipboard

some questions about classifier layer for the model

Open whySnowwW opened this issue 4 years ago • 5 comments

Dear auther there is some question in my mind: in the train stage, the num_classes is 64 which is the number of the miniImageNet_train.pickle, however, when i use the test.py to evaluate my model ,the num_classes is still 64 in the model , I'm a little confused about the few shot model's test principle. Thank you for your time reading my issues. Best wishes!

whySnowwW avatar Sep 10 '20 08:09 whySnowwW

Our method is based on the prototype network. In the testing phase, the classifier is not used, we only use the feature extractor part.

blue-blue272 avatar Sep 10 '20 13:09 blue-blue272

Thanks for your reply. What is the code test transductive used for? and which is the meta learner in the code, I just find myself troublesome in finding the meta learner part of the model structure

whySnowwW avatar Sep 10 '20 14:09 whySnowwW

The test transductive is for the few-shot classification in the transductive setting. You can find the details in the Transductive Inference part of Section 4 in our paper. The meta-learner is the get_attention function in the cam.py, the details can be seen in Meta fusion Layer in Section 3 in our paper.

blue-blue272 avatar Sep 11 '20 01:09 blue-blue272

Sorry to disturb you ,but i still can't find the meta learner part in the code cam.py. Whether it is lying in the part of the def get_attention?

whySnowwW avatar Sep 11 '20 07:09 whySnowwW

Sorry to disturb you ,but i still can't find the meta learner part in the code cam.py. Whether it is lying in the part of the def get_attention?

i also can not find the meta learner,did you find out now?

Medallion11 avatar Jan 11 '24 03:01 Medallion11