Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not scanning the group folder #695

Open
kabaga opened this issue Sep 3, 2023 · 7 comments
Open

Not scanning the group folder #695

kabaga opened this issue Sep 3, 2023 · 7 comments
Labels

Comments

@kabaga
Copy link

kabaga commented Sep 3, 2023

Hey, Thanks for reporting issues back to Nextcloud Face Recognition. Please, try to complete this report in detail so we can help you easier. 😄

Make sure you read all the documentation, and the FAQ, and that the issue has not been reported before. 😉

Expected behaviour

I have all my photos and videos located in /Memories which is a group folder that I created. The group folder can be viewed on the root folder on the users using it. However, the absolute path locate is in /data/__groupfolders/1/. The issue that I am having is when I ran the scan. Face Recognition does not scan the group folder that my wife and I are sharing.

Actual behaviour

It just scans the /data/<user-id>/files/

Steps to reproduce

  1. Install the Face Recognition app
  2. Set the php.ini memory_limit to 2048M
  3. Ran the prep commands:
sudo -u www-data php occ face:setup --model 1
sudo -u www-data php occ face:setup --model 3
sudo -u www-data php occ face:setup --model 4
sudo -u www-data php occ face:setup --memory 1024M --model 4
sudo -u www-data php occ config:app:set facerecognition handle_shared_files --value true
sudo -u www-data php occ face:background_job -t 900

Server configuration

  • Operating system:
    Debian 12

  • Pdlib version:
    php8.2

  • How is DLib installed: Make sure it is working correctly with this tool
    Compiled by following the Hard Way guide

  • How is PDlib installed: Make sure it is working correctly with this tool
    Compiled by following the Hard Way guide

  • PHP version:
    8.2

  • Web server:
    NGINX

  • Database:
    mariadb

  • Nextcloud version:
    27.0.2

Client configuration

  • Browser:

  • Firefox

  • Operating system:
    Debian 12

Logs

Background task log with debug.

sudo -u apache php occ -vvv face:background_job
1/8 - Executing task CheckRequirementsTask (Check all requirements)
	System: Linux
	System memory: 4065071104
	PHP Memory Limit: 2147483648
	Clustering backend: pdlib
	Image Backend: Imagick
2/8 - Executing task CheckCronTask (Check that service is started from either cron or from command)
3/8 - Executing task DisabledUserRemovalTask (Purge all the information of a user when disable the analysis.)
yielding
yielding
yielding
yielding
4/8 - Executing task StaleImagesRemovalTask (Crawl for stale images (either missing in filesystem or under .nomedia) and remove them from DB)
	Skipping stale images removal for user admin as there is no need for it
	Skipping stale images removal for user user3 as there is no need for it
	Skipping stale images removal for user user4 as there is no need for it
	Skipping stale images removal for user user5 as there is no need for it
5/8 - Executing task CreateClustersTask (Create new persons or update existing persons)
	Skipping cluster creation, not enough data (yet) collected. For cluster creation, you need either one of the following:
	* have 1000 faces already processed
	* or you need to have 95% of you images processed
	Use stats command to track progress
yielding
	Skipping cluster creation, not enough data (yet) collected. For cluster creation, you need either one of the following:
	* have 1000 faces already processed
	* or you need to have 95% of you images processed
	Use stats command to track progress
yielding
	Skipping cluster creation, not enough data (yet) collected. For cluster creation, you need either one of the following:
	* have 1000 faces already processed
	* or you need to have 95% of you images processed
	Use stats command to track progress
yielding
	Face clustering will be created for the first time.
	358 faces found for clustering
	201 clusters found after clustering
yielding
6/8 - Executing task AddMissingImagesTask (Crawl for missing images for each user and insert them in DB)
	Skipping image scan for user admin that has disabled the analysis
	Skipping image scan for user user3 that has disabled the analysis
	Skipping image scan for user user4 that has disabled the analysis
	Skipping full image scan for user user5
7/8 - Executing task EnumerateImagesMissingFacesTask (Find all images which don't have faces generated for them)
yielding
8/8 - Executing task ImageProcessingTask (Process all images to extract faces)
	NOTE: Starting face recognition. If you experience random crashes after this point, please look FAQ at https://github.com/matiasdelellis/facerecognition/wiki/FAQ

Web server error log

Web server error log
Insert your webserver log here

Nextcloud log (data/nextcloud.log)

Nextcloud log
Insert your Nextcloud log here

Browser log

Browser log
Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log
c) ...
@matiasdelellis
Copy link
Owner

matiasdelellis commented Sep 3, 2023

sudo -u www-data php occ config:app:set facerecognition handle_group_files --value true

@kabaga
Copy link
Author

kabaga commented Sep 4, 2023

That worked, and it says on the admin settings "The analysis is finished - 18477 images were analyzed". However, when I go to People in Memories, it is still blank.

@kabaga
Copy link
Author

kabaga commented Sep 4, 2023

I'll take it back. The people is now showing up. I just need to logout and log back in.

@vwbusguy
Copy link

vwbusguy commented Jan 7, 2024

What I'm seeing happen is that when I set handle_group_files to true and then triggered the re-analysis, it picked up and analyzed the shared folders, but doesn't seem to pick up new pictures once that analysis is complete during background jobs. I see face recognition of new photos I take from that point, but not newer ones from my wife's account that are shared with mine.

Newer photos in shared folders just say this when viewed in Memories:

image

@matiasdelellis
Copy link
Owner

Hi @vwbusguy

I haven't tested the external files in a while, but it should work... Try the files:scan command

[matias@nube nextcloud]$ sudo -u apache php occ files:scan user_id

@vwbusguy
Copy link

vwbusguy commented Jan 10, 2024

It's not "external files" in the Nextcloud nomenclature sense, but another user on the same Nextcloud instance that has shared with another local user, so handle_shared_files would be relevant here (I have shared and group enabled) as opposed to handle_external_files, I would think?

I'll try that when I get home from work, but is there anyway to keep it analyzing new pictures in shared folders automatically after the initial scan is complete?

@matiasdelellis
Copy link
Owner

matiasdelellis commented Jan 10, 2024

Sooooo sorrrrrrrrrrrrrrrrryyyyyyyyyyyyy.. 😞 😥 🤦🏻‍♂️

It seems that I never updated the documentation but the setting is handle_group_files 🤦🏻

Please try it..

ps.: Now I see that I already mentioned it before. But hey... the documentation is missing and someone should try it carefully!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants