mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Changed graph construction for chinese_whispers() so that each face is always
included in the edge graph. If it isn't then the output labels from chinese_whispers would be missing faces in this degenerate case.
This commit is contained in:
parent
347257cbc0
commit
dc0245af05
@ -142,7 +142,7 @@ int main(int argc, char** argv) try
|
||||
std::vector<sample_pair> edges;
|
||||
for (size_t i = 0; i < face_descriptors.size(); ++i)
|
||||
{
|
||||
for (size_t j = i+1; j < face_descriptors.size(); ++j)
|
||||
for (size_t j = i; j < face_descriptors.size(); ++j)
|
||||
{
|
||||
// Faces are connected in the graph if they are close enough. Here we check if
|
||||
// the distance between two face descriptors is less than 0.6, which is the
|
||||
|
Loading…
Reference in New Issue
Block a user