diff --git a/tools/python/src/face_recognition.cpp b/tools/python/src/face_recognition.cpp index 8da7d7901..b838f2eee 100644 --- a/tools/python/src/face_recognition.cpp +++ b/tools/python/src/face_recognition.cpp @@ -141,7 +141,7 @@ boost::python::list chinese_whispers_clustering(boost::python::list descriptors, std::vector labels; for (size_t i = 0; i < num_descriptors; ++i) { - for (size_t j = i+1; j < num_descriptors; ++j) + for (size_t j = i; j < num_descriptors; ++j) { matrix& first_descriptor = boost::python::extract&>(descriptors[i]); matrix& second_descriptor = boost::python::extract&>(descriptors[j]);