damo-cv / Ada-NETS

This is an official implementation for "Ada-NETS: Face Clustering via Adaptive Neighbour Discovery in the Structure Space" accepted at ICLR 2022.
MIT License
33 stars 3 forks source link

NameError: name 'knn' is not defined #9

Closed Nigar21 closed 2 years ago

Nigar21 commented 2 years ago

also, when I run >>bash script/gene_adj.sh I got this: Traceback (most recent call last): File "tool/gene_adj_adanets.py", line 3, in from knn import fast_knns2spmat, knns2ordered_nbrs, fast_knns2spmat_adaptivek File "/home/nigar/Ada-NETS/tool/knn.py", line 289, in class knn_brute_force(knn): NameError: name 'knn' is not defined

Thomas-wyh commented 2 years ago

Hi, thanks for your issue. Please comment the Line289~398 in tool/knn.py. These codes are not used in this project. Also, uncomment the Line10 in script/gene_adj.sh.

These will be fixed later.

Nigar21 commented 2 years ago

Thank you very much! I commented the rest of knn.py from the line 289.