facerecognition icon indicating copy to clipboard operation
facerecognition copied to clipboard

Images in group folders get scanned again for every user

Open lkempf opened this issue 1 year ago • 5 comments

Expected behaviour

When multiple users have access to the group folder, the analysis results of one user should be used for everyone.

Actual behaviour

Each image in a group folder gets analyzed multiple times.

Steps to reproduce

  1. Create a group folder for all users and upload some images.
  2. Enable analysis for group folders.
  3. Enable face recognition for user 1 and run the background job. All pictures in the group folder will be analyzed.
  4. Enable face recognition for user 2. All face recognition data for images in the group folder is instantly available to the user.
  5. Run the background job. All images in the group folder will be analyzed again.

Server configuration

  • Database: Postgres

  • Nextcloud version: 25.0.4

Logs

Not very interesting. The only thing of note is that cluster creation is skipped for user 2. This might become problem if all pictures of user 2 except for the ones in the group folder have already been analyzed.

Thanks for the great extension. Face recognition is working really well except for this issue with group folders.

lkempf avatar Mar 12 '23 10:03 lkempf

@lkempf

I am likely to face the same issue very soon, and without a GPU available (in Hyper-V) it's taking me approx. 44 seconds to assess all faces in an image, which is a significant overhead if I need to run this for two users with group folders with all my media libraries available.

@matiasdelellis Any plan to allow a shared database (of names/faces) between multiple users for face recognition to reduce overhead on multiple scans for each user that has photos stored in group folders?

sunnyd24 avatar Aug 25 '23 21:08 sunnyd24

Any plan to allow a shared database (of names/faces) between multiple users for face recognition to reduce overhead on multiple scans for each user that has photos stored in group folders?

I am confused why I am mentioned here. Is this not something that would need to be addressed by the facerecognition app?

szaimen avatar Aug 25 '23 21:08 szaimen

About the bug, it is planned, the same goes for shared images, etc. But a clarification. Names will never be shared. We're just going to avoid double scanning the files.

Simon is right, very kindly he is helping with AIO, but he is not responsible for this application. Do not involve him unless necessary. 😉

matiasdelellis avatar Aug 25 '23 21:08 matiasdelellis

About the bug, it is planned, the same goes for shared images, etc. But a clarification. Names will never be shared. We're just going to avoid double scanning the files.

Simon is right, very kindly he is helping with AIO, but he is not responsible for this application. Do not involve him unless necessary. 😉

Sorry mentioned in error, edited now! My apologies!

sunnyd24 avatar Aug 25 '23 22:08 sunnyd24

waiting for this feature

dmiales avatar Jun 17 '24 17:06 dmiales