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

A problem about testing with fine-tune #9

Closed
wcg5262 opened this issue Nov 6, 2019 · 6 comments
Closed

A problem about testing with fine-tune #9

wcg5262 opened this issue Nov 6, 2019 · 6 comments

Comments

@wcg5262
Copy link

wcg5262 commented Nov 6, 2019

Hi, @jshtok:
Thanks for your code. I have a problem.
When I input: python fpn/few_shot_benchmark.py --test_name=RepMet_inloc --Nshot=1 --Nway=5 --Nquery_cat=10 --Nepisodes=500 --do_finetune=1 --num_finetune_epochs=5 --lr=5e-4
It will report error:
图片
I found this because when balance_classes() is done in loader.py,
图片

Could you explain this to me? I am grateful.

@jshtok
Copy link
Owner

jshtok commented Nov 8, 2019

Hi,

You mentioned (in the email version of this ticket) you have the setting
cfg.dataset.NUM_CLASSES=127
but in the .yaml configuration file it is set
dataset:
NUM_CLASSES: 122
so the NUM_CLASSES should be 122. I don't expect this error to happen if the NUM_CLASSES is correct, please check if this is the case.

@wcg5262
Copy link
Author

wcg5262 commented Nov 8, 2019

@jshtok Thank you for your answer. I have solved this problem.
I am a beginner in meta-learning. I would also like to ask you why there is no fine-tune part of the test. If don't do fine-tune, isn't it a zero-shot?

@jshtok
Copy link
Owner

jshtok commented Nov 8, 2019

Hi,
You can activate the fine-tune in test by setting do_finetune=1, please read the readme.md for detail.s
But even without fine-tuning, this is few-shot and not zeros-shot because the detector uses the few samples. It is called zero-shot learning when not one visual example is available.

@jshtok jshtok closed this as completed Nov 8, 2019
@wcg5262
Copy link
Author

wcg5262 commented Nov 8, 2019

@jshtok Hi, I understand the meaning of zero and few, what I don't understand is that in this project, when do_finetune=0, is there any network fine-tuning during the test?
Such as running:
python fpn/few_shot_benchmark.py --test_name=RepMet_inloc --Nshot=1 --Nway=5 --Nquery_cat=10 --Nepisodes=500
I found in this case, only the detector is detecting.

@jshtok
Copy link
Owner

jshtok commented Nov 9, 2019 via email

@wcg5262
Copy link
Author

wcg5262 commented Nov 10, 2019

@jshtok I am grateful for your patient answer.

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