Replies: 1 comment
-
Yes, you can use a script like this one: #!/bin/bash
set -o errexit
dir=$(pwd)
# your nextcloud path
cd /var/www/nextcloud/html/
sudo -u www-data php --define apc.enable_cli=1 ./occ face:stats
echo -n "Select user for parallel processing:"
read user
echo ""
echo "Synchronizing $user files..."
sudo -u www-data php --define apc.enable_cli=1 ./occ face:background_job -u $user --sync-mode
echo "Done"
echo "Analyzing $user files..."
for i in {1..3}; do
sudo -u www-data php --define apc.enable_cli=1 ./occ face:background_job -u $user --analyze-mode &
pids[${i}]=$!
done
for pid in ${pids[*]}; do
wait $pid
done
echo "Done"
echo "Calculating $user face clusters..."
sudo -u www-data php --define apc.enable_cli=1 ./occ face:background_job -u user --cluster-mode
echo "Done"
cd $dir and in the for loop select the number of parallel times it runs. And if you use the docker image for external processing (model 5) you need to rebuild it to support that (https://github.com/doppelgrau/facerecognition-external-model/tree/gunicorn) and set the enviroment variable |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to use more than 1 processor core for calculations to speed up the processing process?
Beta Was this translation helpful? Give feedback.
All reactions