| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Recognize by marcelklehr (https://github.com/marcelklehr) put into Docker Big kudos o to Marcel for comingup with such a nice piece of software as well as quickly reacting to an ask to add GPU support!
Speed diff? ~ca. 25x (yes, 25 times quicker - average based on two systems testing):
Dockers for Recognize with GPU support (git master branch based).
Three options available:
In all cases resulting docker image is heavy due to Cuda/CudNN, Tensorflow/TensorRT and Recognize models included together with Nextcloud source.
Pre-reqs:
If all is prepped well, this should work and provid nvidia-smi output from within container: sudo docker run --rm --gpus all nvidia/cuda:11.6.2-base-ubuntu20.04 nvidia-smi
Interestingly the Debian 12 based images come out smaller. Potentially I've missed some of other elements included within nVIDIA one though all works.
This one uses little hack, it tags nVIDIA TensorFlow Docker image as Debian, used in next steps to build php, etc. Use with caution and in case if have other images built on base of Debian, remove the Debian image afterwards.
Use build-all.sh script as it takes care of all dependencies and options/version.
For these where Tensorflow is missing, most likely "-g" option has been missed and as such Nextcloud image was built without injecting Tensorflow into underlying images - this is essential.
Additionally, once it's all done, Node binary is needed, as due to other changes it doesn't get included automatically anymore into (to be fixed). Finally also, todo for me, is to re-add back also automated build/retreival via npm of the missing components as required by Recognize and way it is shared (check for manual Recognize installation). It all worked earlier - just changes versions wise made this difference.
cd <Dockerfile folder>
DOCKER_BUILDKIT=1 docker build -t local/nextcloud-recognize-gpu:latest .`docker run -it --rm --gpus all <your usual mappings, i.e. volumes for NC data, etc> local/nextcloud-recognize-gpu:latest -d`In case of update, or moving existing data/deployment.
rsync -avH /usr/src/nextcloud/custom_apps/recognize/ /var/www/html/custom_apps/recognize/`To validate if Recognize has any chances to use GPU, validate:
docker exec -it <your_container_name> /bin/bash -c "cd custom_apps/recognize && bin/node ./src/test_gputensorflow.js"initial sizes
Diff seems to be coming from the fact that Debian installs additional packages on the way.
Potential issues:
Known issue(s):
| Back | FazBrowse Home | New Git URL |