lorenmt / reco

The implementation of "Bootstrapping Semantic Segmentation with Regional Contrast" [ICLR 2022].
https://shikun.io/projects/regional-contrast
Other
162 stars 25 forks source link

About query samples and key samples setting. #28

Closed DISAPPEARED13 closed 1 year ago

DISAPPEARED13 commented 1 year ago

Thanks for inspiring work!

I notice that in part Implementation Details , you mention that in ReCo framework, you sampled 256 query samples and 512 key samples for each mini-batch, could you please tell me why is 256 and 512?

Thanks a lot!

lorenmt commented 1 year ago

That's purely empirical. You may check out the ablative analysis section to see the performance of other sample numbers.

DISAPPEARED13 commented 1 year ago

Thanks for replying! I am confused that the sample numbers should have been related with the input patch pixels number. For enough points seems play a very important role when caculating the reco loss :smile: So is it the reason when you chose number of queries and number of keys?

lorenmt commented 1 year ago

Strictly speaking yes. But it works well in practise which I assume mainly because of the design of active sampling.