Closed UnkownNames closed 3 years ago
Great catch! You are right, nbrs[i][sort_indices[: j+2]]
should be excluded from the samples. Thank you for finding this! Can you please send a pull request for this change?
@YuXiaokang I made the one line change, hope that's ok. Thanks again for finding this bug!
in the trimap_.py, there is a function
and another function
the
sort_indices
is always range(0,150) [ set then_inliners=100
], in the raw implemention code you have guarantee that out is not in range(0,150), but in fact range(0,150) is not the true indice forsim
, so I have found the indice ofsim
andout
will be equal sometimes. in my opinion, the implemention ofsample_knn_triplets
should be below: