PIC icon indicating copy to clipboard operation
PIC copied to clipboard

k = x.shape[1]

Open techmonsterwang opened this issue 3 years ago • 3 comments

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?

techmonsterwang avatar Feb 07 '22 09:02 techmonsterwang

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.

bl0 avatar Feb 07 '22 11:02 bl0

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

techmonsterwang avatar Feb 07 '22 11:02 techmonsterwang

No special reason, just practice choices.

bl0 avatar Feb 07 '22 13:02 bl0