Database Diagnostics: File / Face mismatch in face/anno sort order

Started by axel.hennig, October 08, 2025, 12:30:54 PM

Previous topic - Next topic

axel.hennig

I got a warning after Database Diagnostics. The warning was:

Warning: File [169249] face [111400] has a mismatch in face/anno sort order.
A second run of the Database Diagnostics solved the problem (no more warning).

My two questions: 
  • I know how to search for the File [169249] using the File Finder app, but is there a way to search for the face [111400]?
  • What does this warning exactly mean? I don't understand what is mismatching...

Mario

You cannot search for a face id. If you search for the file, you can use the {File.Faces.OID} variable in VarToy to identify the face. It lists faces in order.

The warning means that the order of face annotations does not match the order of faces. They should be in sync.
If you find a way to reproduce this, let me know. 
Did you change annotation order? Import XMP face regions? Other changes that case this?

axel.hennig

Thanks for the explanation, but I'm not sure if I can fully follow.

Question: Is there a way to check if the "order of face annotations" matches the "order of faces" without using Database Diagnostics? E.g. via several variables in VarToy?

I've created (AI) a sample image to better ask / understand.

You cannot view this attachment.

Questions:
  • Does the "order of face annotations" match the "order of faces" if
    • {File.Faces.OID} returns "111;222" and
    • {File.MD.XMP::iptcExt\PersonInImage\PersonInImage\0} returns "Adam;Bonnie"?
  • And it does not match (i.e. is out of sync) if it is either "222;111" or "Bonnie;Adam"?

General question: What exactly is "order of face annotations" and what is "order of faces" and where is the difference (maybe with reference to my attached image?)?

Mario

QuoteQuestion: Is there a way to check if the "order of face annotations" matches the "order of faces" without using Database Diagnostics? E.g. via several variables in VarToy?

No. Faces and annotations are unrelated concepts. Annotations existed long before face recognition. They always should have the same order. The order is basically how annotations (including faces) are stacked in the Z-order. The only implication for faces is in which order the persons are listed in e.g. variables.