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

Why are you augmenting your support set and why is not cheat? #36

Open
brando90 opened this issue Mar 1, 2022 · 3 comments
Open

Why are you augmenting your support set and why is not cheat? #36

brando90 opened this issue Mar 1, 2022 · 3 comments

Comments

@brando90
Copy link

brando90 commented Mar 1, 2022

Why do you have this?

parser.add_argument('--n_aug_support_samples', default=5, type=int,

my impression was that in when one does an n-way, k-shot task one only uses k-shots -- but this number increases the shots. Wouldn't this be cheating?

args.n_aug_support_samples = 5

...

support_xs.size()=torch.Size([125, 3, 84, 84])
query_xs.size()=torch.Size([75, 3, 84, 84])

No aug in support set

args.n_aug_support_samples = 1

...

support_xs.size()=torch.Size([25, 3, 84, 84])
query_xs.size()=torch.Size([75, 3, 84, 84])

perhaps this is why I can't reproduce and the values reported in the paper are larger than mine -- even when I use the rfs mini imagenet checkpoint.

@brando90 brando90 changed the title Why are you augmenting your support set? Why are you augmenting your support set and why is not cheat? Mar 1, 2022
@brando90
Copy link
Author

brando90 commented Mar 1, 2022

(c) during meta-testing, we create 5 augmented samples from each support image to alleviate the data insufficiency problem, and using these augmented samples to train
the linear classifier

but isn't the point to see what one can do with few shots? This puzzles me.

@WangYueFt @HobbitLong

@brando90
Copy link
Author

brando90 commented Mar 2, 2022

@WangYueFt @HobbitLong how is increasing the support set different from increasing the shots for you?

@HobbitLong
Copy link
Collaborator

HobbitLong commented May 1, 2023

Hi @brando90,

If you have 5-shots, it's still 5 unique images used. n_aug_support_samples=5 means we augment each image 5 times. It's just data augmentation. The total information you used is still the same.

See table 5 in the paper. It helps a bit, but not dramatically.

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