yl-1993 / learn-to-cluster

Learning to Cluster Faces (CVPR 2019, CVPR 2020)
MIT License
705 stars 143 forks source link

building symmetric adjacency matrix in utils #84

Open marigoold opened 3 years ago

marigoold commented 3 years ago

https://github.com/yl-1993/learn-to-cluster/blob/3b834589923baf72523e288cc462e0df591b99c1/utils/adjacency.py#L20-L24

The original adjacency matrix built from faiss is not symmetric, so what is the purpose to convert it to symmetric matrix? And why do you implement it in this way?

marigoold commented 3 years ago

https://github.com/yl-1993/learn-to-cluster/blob/3b834589923baf72523e288cc462e0df591b99c1/utils/adjacency.py#L8-L17

By the way, what is the purpose of row_normalize, and # if rowsum <= 0, keep its previous value?