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

Patch sampling #119

Open
philnovv opened this issue Jan 24, 2022 · 1 comment
Open

Patch sampling #119

philnovv opened this issue Jan 24, 2022 · 1 comment

Comments

@philnovv
Copy link

Hi all,

Was just reading thru the paper and the code to get a better understanding of the implementation. Am I right to assume that the "patches" used for the InfoNCE loss are actually single multi-channel pixels sampled from various layers of the encoder? I'm inclined to think this (looking at the implementation), but the paper explicitly says that native (non-encoded) patches of image intensities are also used to compute the InfoNCE loss.

Any clarification would be great, thanks.

@taesungp
Copy link
Owner

taesungp commented Feb 3, 2022

Hello,

you are right that the "patches" are implicitly defined by the receptive field of each single multi-channel locations sampled from various layers of the encoder. Conceptually, the features can be anything from pixels to deep features. In practice, we pick every 4th layer output of the encoder network. For example, the first feature would be produced from the output of the first convolution on pixels without downsampling. Sorry if there was confusion.

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