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

code issues #1

Open
Liuhao-128 opened this issue Jun 27, 2022 · 1 comment
Open

code issues #1

Liuhao-128 opened this issue Jun 27, 2022 · 1 comment

Comments

@Liuhao-128
Copy link

Hi, Hurtado, I am interesting in your work.
I have a questions about the code in approach.py. Specifically, I am not understand what is the meaning of input_feats=batch[2] .
The shape of input_feats is [batchsize, channel, 28, 28].
Could your tell me the answer, thanks a lot.

@JuliousHurtado
Copy link
Owner

Hi,
thank you for being interested in our work.

About your question.
If you check the function __getitem__ in the dataloaders of the different benchmarks, you can observed that it has 3 output.

  • batch[0]: is the input of the model (images)
  • batch[1]: is the corresponding label
  • batch[2]: is the feature vector of a pre-trained model

This last output is nor really used in the basic method proposed, only in the experiment when we use a pre-trained model as an F function.

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