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

Questions about Resnet 12 backbone #16

Open
LoveMiki opened this issue Aug 20, 2020 · 4 comments
Open

Questions about Resnet 12 backbone #16

LoveMiki opened this issue Aug 20, 2020 · 4 comments

Comments

@LoveMiki
Copy link

Hello, I am reading your codes and there are a few questions i want to ask.

  1. What is the purpose of the outputs of second last layer? I found that the outputs of second last layer are used to compute the point similarities, but why don't we just use the outputs of the last layer(i.e., embedding features of images)?
  2. What is the exact meaning of num_queries? You describe it as the number of samples in query set, so when num_queries = 1, dose it means that there is only one image in query set? However, i found that the there are five images in the query set when num_queries is set to 1.
@Godxia
Copy link

Godxia commented Dec 18, 2020

The second question. num_queries = 1 means 1query image every way

@LoveMiki
Copy link
Author

The second question. num_queries = 1 means 1query image every way

As I have mentioned, there are 5 images (way) per class (shot) when num_queries = 1

@AlienceGG
Copy link
Collaborator

Hello, I am reading your codes and there are a few questions i want to ask.

  1. What is the purpose of the outputs of second last layer? I found that the outputs of second last layer are used to compute the point similarities, but why don't we just use the outputs of the last layer(i.e., embedding features of images)?
  2. What is the exact meaning of num_queries? You describe it as the number of samples in query set, so when num_queries = 1, dose it means that there is only one image in query set? However, i found that the there are five images in the query set when num_queries is set to 1.
  1. The second last layer is utilized for better generalization in DPGN, which might provide more userful information in initialization.
  2. Because it has 5 way. :) num_queries means num_queries per way.

Yours
DPGN team

@lgx12345678
Copy link

Hello, I encountered this error when running the command python3 main.py --dataset_root dataset/ --config config/5way_1shot_resnet12_mini-imagenet.py --num_gpu 0 --mode train: RuntimeError: Given input size: (512x6x6). Calculated output size: (512x0x0). Output size is too small. I haven't made any changes to any other parts of the code or configuration. How can I resolve this issue?

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

4 participants