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

k = x.shape[1] #4

Open
techmonsterwang opened this issue Feb 7, 2022 · 3 comments
Open

k = x.shape[1] #4

techmonsterwang opened this issue Feb 7, 2022 · 3 comments

Comments

@techmonsterwang
Copy link

Hi! A line of code in PIC.py is: k = x.shape[1].

I wondor what does k means here? Maybe image channels? But why is each channel handled separately?

@bl0
Copy link
Owner

bl0 commented Feb 7, 2022

To achieve better performance, our PIC adopts a multi-crop strategy, which is proposed in SwAV. In each iteration, one 160 x 160 crop and three 96 x 96 crops of an image are fed into the model. With similar memory and compute requirements, PIC could achieve better performance than the original PIC model.

@techmonsterwang
Copy link
Author

Thanks a lot. I have understand k meaning. But why choose--num-crop 1 \ --num-crop2 3 ?

@bl0
Copy link
Owner

bl0 commented Feb 7, 2022

No special reason, just practice choices.

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