CrossDomainFewShot icon indicating copy to clipboard operation
CrossDomainFewShot copied to clipboard

pseudo seen and pseudo unseen domains

Open yxgnahz opened this issue 4 years ago • 3 comments

Hi, I found in your code that every epoch you split the ps and pu domains by random.sample(base_set, k=2), so you only use one domain as the ps domain and one another domain as the pu domain during your experiment?

yxgnahz avatar Apr 10 '20 02:04 yxgnahz

We use one domain as the ps domain and one other domain as the pu domain for the same training epoch. Ideally, we should sample different sets for ps and pu domains for each training iteration. However, it is not very efficient as we need to re-configure the data loader for each training iteration. Instead, we perform the domain sampling for each training epoch due to practical consideration.

hytseng0509 avatar Apr 12 '20 05:04 hytseng0509

Thanks for your response. I re-implemented your model in my work, and I observed that even if I load the pre-trained model, the validation accuracy will drop dramatically once starting back propagation with FT layer enabled (I tried to train on miniImagenet and test on CUB). Did you observe this during your training process?

yxgnahz avatar Apr 13 '20 07:04 yxgnahz

No, I don't observe that problem. As long as the values of the transformation parameters in the FT layers are in a reasonable interval, the FT layers should help generalize the metric-based model.

hytseng0509 avatar Apr 23 '20 22:04 hytseng0509