LIGHTROOM 6 Facial recognition runs amok

  • 1
  • Problem
  • Updated 3 years ago
  • (Edited)
hello,

happend a few times with a new catalog.

i run the people view and everything but faces are recognized as faces.

green gras, white walls, blue sky etc.

and i don ́t mean a few images i mean 2-4 wrong rectangels per image.... for hundreds of images (i stopped it or it would be way more).

happend a few times now.

also the keywords in the keywording windows do not change when i enter people view.

i mean the windows only shows the keyword of one image and when i change the image in grid view, the keywords of the actual image are not shown. (the window is not updated)

they are also stuck when i close people view. only a LR restarts helps.

i run windows 7 x64

32gb ram

980gtx (latest drivers)
Photo of Tanja Schulte

Tanja Schulte

  • 115 Posts
  • 42 Reply Likes

Posted 3 years ago

  • 1
Photo of Tanja Schulte

Tanja Schulte

  • 115 Posts
  • 42 Reply Likes
Photo of Simon Chen

Simon Chen, Principal Computer Scientist

  • 1452 Posts
  • 454 Reply Likes
Where are those images coming from? iPhone, a particular camera model? Could you share a few of those original images? My suspicion is that Lr pulls these "faces" by importing from the metadata on import.
Photo of Tanja Schulte

Tanja Schulte

  • 115 Posts
  • 42 Reply Likes
the images are mostly from Canon 6D, Canon 550D, Canon 5D MK3 and iphone 4, samsung galaxy 3-4 images.

the strange thing is that images from the same cameras (also the smartphone) work normaly.

this only happend 3-4 times the past days.
always when i had "show images in subfolders" selected or when i let it run over a big smartcollection.
so i think it has maybe something to do with the case that the images are in different folders?

as im doing this with a test catalog i also removed all data and tried again with a clean catalog and the same images worked fine with face recognition.
Photo of Simon Chen

Simon Chen, Principal Computer Scientist

  • 1452 Posts
  • 454 Reply Likes
How the images are organized in different folders does not matter. There might be additional photos that got imported when you have "show images in subfolders" selected.

Certain camera & smart phones do face detection on the camera and embed the face regions as metadata in the photo. In such case, Lr would read the face regions from the photo metadata directly during import. There might be some issue during import where the face regions where not transformed correctly based on the image orientation.

  1. Choose Lightroom > Preferences > Presets (Mac OS) or Edit > Preferences > Presets  (Windows).
  2. Select Show Lightroom Presets Folder, and open the selected Lightroom folder. 
  3. Create a text file named "config.lua" file into the Lightroom folder and add the following line in the "config.lua" file and save it:
FaceTagging.disableFaceImportFromXMP = true

4. Relaunch Lr and create a new test catalog and re-import the photos. The config file would prevent Lr from reading face regions from the photo metadata and allow Lr's built-in face engine to do the face detection.
 
Photo of Tanja Schulte

Tanja Schulte

  • 115 Posts
  • 42 Reply Likes
i know that it "should not" affect the FR. no bug should happen. :)

but the only time i noticed this behavior was when i let "people view" run over a big amount of images located in different
folders.

so i guessed it has something to do with it and it creates a "hickup" in the FR engine.

i will try your advice but i have no big hopes that it will fix this problem.

because the canon cameras do not have face recognition. they don ́t add such tags.... but images from them are affected too.
some images are even scans from analog film.

also when i restart LR and scan the same folder again it does not automatically happens again.
it only happens sometimes.. random.

and when it happend it was with 1000+ images and always when images from dfiferent folders had to be scanned for faces.
Photo of Tanja Schulte

Tanja Schulte

  • 115 Posts
  • 42 Reply Likes
and then there is this other issue i mentioned.

that the keyword window is not updated when i am in people view or even after i exit people view.

when i select images in grid view the keyword window does not show me the assigned keywords. it is stuck to some keywords from an image i had selected prior to switching into people view.

only when i restart LR it works again.

tested on my desktop and my laptop.
i can reproduce this error in every session.

but this is not a new bug.. i also noticed this behavior sometimes with v5.7.x. but it was random with 5.7.x.

now with people view it happens much more often.
Photo of Tanja Schulte

Tanja Schulte

  • 115 Posts
  • 42 Reply Likes
ok i tried with the

FaceTagging.disableFaceImportFromXMP = true

option and it did not really help.

but it introduces a new problem.

when i send photos from LR to photoshop the face tags are not automatically read in after i saved them.
the images appear without the face tags when i save them in photosho until i manually import (read metadata) them.
Photo of Simon Chen

Simon Chen, Principal Computer Scientist

  • 1452 Posts
  • 454 Reply Likes
Thanks. It is not a metadata import issue then. I am kind of worried about that because we fixed a similar bug before. So the earlier issue that you run into could be due to face engine. If you can still reproduce the issue, could you share a few of your images in private?

Regarding roundtripping photos from Lr to Ps, it is a current limitation. Ps does not yet know how to properly handle the image region metadata during its edits operations. Since Ps is not a non-destructive image editor, the image could be further cropped, scaled, rotated or transformed in Ps. Ps would need to be taught how to transform the face regions under these conditions. Otherwise, the face regions would be completely off once it comes back to Lr (and Lr have no idea what user did in Ps).

Because of this, Lr treats the round tripped photos as new and do the face detection afresh. This design is intentional at this point.