w1oves / Rein

[CVPR 2024] Official implement of <Stronger, Fewer, & Superior: Harnessing Vision Foundation Models for Domain Generalized Semantic Segmentation>
https://zxwei.site/rein
GNU General Public License v3.0
215 stars 19 forks source link

why the total similarity is kept as 1 in the corresponding line of Si, which may lead to wrong modifications? #36

Closed jj-ccc closed 3 months ago

jj-ccc commented 4 months ago

Hi author, nice to read such an interesting paper, I would like to ask why the total similarity is kept as 1 in the corresponding line of Si, which may lead to wrong modifications?

jj-ccc commented 4 months ago

![Uploading dc05810f17151ea0b89c009f8f852b7.png…]()

w1oves commented 3 months ago
whyandbecause commented 3 months ago

您好,我同样关注到了这个问题,基于您的回复,我理解了这么处理的意图,但是我还有一个小疑问,在训练过程中是如何在Si中给不用改变的特征始终分配一个较大的值的?

w1oves commented 3 months ago

您好,我同样关注到了这个问题,基于您的回复,我理解了这么处理的意图,但是我还有一个小疑问,在训练过程中是如何在Si中给不用改变的特征始终分配一个较大的值的?

当所有其他值都较小时,根据softmax的特性,剩余的值将会相应增大。