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

Is there any difference between 5-way 1-shot and 5-way 5-shot in the code? #22

Open
yang-yk opened this issue Jan 19, 2020 · 6 comments

Comments

@yang-yk
Copy link

yang-yk commented Jan 19, 2020

Hi, Shtok, sorry to bother you again.

When I run the code of 5-way 1-shot, the experiment results are close to what the paper reports. However, when I run the code with the command 'python fpn/few_shot_benchmark.py --test_name=RepMet_inloc --Nshot=5 --Nway=5 --Nquery_cat=10 --Nepisodes=500' (5-way 5-shot), the AP is much smaller (48.3%) than what the paper reports (68.8%). I wonder why it happens. Can you help me to solve this problem. Thanks very much!

Sincerely,
Yukuan Yang

@yang-yk
Copy link
Author

yang-yk commented Jan 19, 2020

@duynn912 Do you have any idea about my questions above. Thanks!

@duynn912
Copy link

Hi @yang-yk,

I also got a result like you for 5 way 1 shot. Actually, I did not experiment 5 way 5 shot so I did not know exactly how many accuracy is. However, according to the paper, when we experiment 5 way 1 shot, it means we have one image from each class, totally 5 images for 5 classes. And you have 5 way 5 shot, you will have 5 images from each class of 5 classes, totally 25 images for 5 classes. At this time, you have more images for your experiment, I think it will have a higher accuracy in comparison to 5 way 1 shot and it will be similar to the paper. So, I was also wondering why it is?

@jshtok
Copy link
Owner

jshtok commented Jan 20, 2020 via email

@jshtok
Copy link
Owner

jshtok commented Jan 28, 2020

Hi @yang-yk ,
I just executed the line
python fpn/few_shot_benchmark.py --test_name=RepMet_inloc --Nshot=5 --Nway=5 --Nquery_cat=10 --Nepisodes=500

and I am getting good results (see .log file below).
Sorry I couldn't reconstruct your error.

Regards,
Joseph

few_shot_benchmark_RepMet_inloc_5shot_5way_10qpc_500epi_aug_0%3A10_lr_1.0e-04_nms%3A0.30_iou%3A0.70_clust%3A1_exact%3A1_2020-01-27-15-05.log

@yang-yk
Copy link
Author

yang-yk commented Feb 8, 2020

Hi @jshtok ,
Thanks for your reply.
I think the reason why I have met the problem lies in the episode file generated by the code after comparing your log file. My log file and episode file is as follows. I think my episode file (.npz) is different from yours. I wonder whether this is caused by the random seed setting or the NumPy version (1.16.5).

To be clear, I use the original code from Github and the original model parameters (downloaded from the google drive). Can you give me your 1-shot 5-shot and 10-shot episode file (.npz file in the output directory).

Thanks very much and hope to hear from you soon!

Best regards,
Yukuan Yang

5-shot result.zip

@jshtok
Copy link
Owner

jshtok commented Feb 12, 2020 via email

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

3 participants