mhamilton723 / STEGO

Unsupervised Semantic Segmentation by Distilling Feature Correspondences
MIT License
712 stars 143 forks source link

Informations about Spatial Centering #28

Open HeyGazz opened 2 years ago

HeyGazz commented 2 years ago

Hello @mhamilton723, i'm an engineering student and i'm trying to implement STEGO algorithm in Matlab. I have some doubts about implementing Spatial Centering operation. I guess that the code that implements this operation is located in 'modules.py' rows 331-333, am i say right?

Schermata 2022-06-15 alle 12 34 53

At the beginning the input tensor F has elements ranging from -1 to 1, but at the end of the operations the some elements' tensor have values slightly greater/lower than 1/-1.
Did i miss some parts of the algorithm? Have you had the same problem? If yes, how did you solve this problem?

Thank you very much.

aliasvishnu commented 2 years ago

@HeyGazz I had a question on this part as well. According to my interpretation of the paper, line 331 & 333 are not part of the algorithm. Did you understand why this is done in this way?