-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Videos: Improve Nvidia GPU Support #2613
Comments
Thanks for testing ❤️ |
Question. Will this run natively on a Jetson Nano 4gig? Honestly I'm trying to be able to use it with Home Assistant, DoubleTake, and Frigate. Using PhotoPrism as the data source for the faces I know for training. I have requests with those parties to hopefully tie into here based on url searches as well. My whole approach is to have a video doorbell that will recognize anyone that I have taken a picture of and labeled and trigger an automation. I have most of it down. Now it's just trying to get your data into DoubleTake |
It will run on a Jetson, but you have to compile it and manually install the dependencies incl TensorFlow libs if you don't want to use Docker (which includes all of this in a single image). |
No I'd prefer to just load the DeepStack base image minus running DeepStack and then run it under docker compose. That way I know the dependencies should already be there for TensorFlow and the CUDA drivers. Should logical to you? |
You need the right TensorFlow libs inside the Docker image unless you only want hardware video transcoding. |
Hi, I still have issues getting this running. When running
However when I start a transcode with
Any suggestions? Edit: |
do you also have the
|
Yes! |
ok try the command i used maybe try a different file to transcode? |
I tried it with the same file again and with a diffrent one - even more errors:
|
|
I would like to report this method worked for me. |
Hi, I'm not an expert. can someone provide me the full docker command I need to use to take advantage of the Nvidia in containers? |
I thought I would write up my testing so far. Hopefully, this helps. I have a single GTX 1080 GPU running a Debian server. I have my host configured using the Nvidia docker
This will enable the GPU in the container. If you execute, Problem
|
Signed-off-by: Michael Mayer <michael@photoprism.app>
@wjbridge I have updated the FFmpeg parameters based on your suggestions. Due to limited resources, this is all I can do for now. Let us know if this helps. Further improvements from our side will have to wait until the multi-user features are ready. However, we welcome any contributions! |
|
Based on this overview, the package would automatically install a full X11 desktop environment with it? That seems a bit too much, although that probably covers everything you might need. What I didn't see is |
If anyone has time to figure this out completely and test it, here is the script to update: |
You were right about X11, my ffmpeg wont do it without an X11 session with I'll try the docker approach. |
Using the nvidia hook mentioned by @wjbridge and the preview docker tag I was able to get live photos to convert using my nvidia 3080. |
I can also confirm that the FeedbackRegarding the install-gpu.sh. Logs
|
Signed-off-by: Michael Mayer <michael@photoprism.app>
Signed-off-by: Michael Mayer <michael@photoprism.app>
Added a (hopefully) ready-to-use
Let us know if it works so we can release it 👍️ |
Signed-off-by: Michael Mayer <michael@photoprism.app>
As an Unraid user, I didn't suffer from any transcoding issue with my GPU so I don't expect to install the Nvidia Toolkit container. Am I the only one in this case? |
@gyto6 The old method still works if you share the hardware devices, but you have to install the drivers manually in the Docker container. From the feedback above, the old "gpu" target for |
Well, I didn't install any driver in the docker container by myself. The host (Unraid) had the latest Stable release Nvidia drivers, 515, whereas the Photoprism container displayed the 470 drivers version, if I remembered well, with the nvidia-smi command. I repeat, I didn't install any driver in the container, I don't know how to do it. I'd do it to test Tensorflow with the GPU if I could. Whatever, I tested once again:
So it's still working, but I don't understand as you just told that I should have installed the drivers by myself. |
Maybe FFmpeg can transcode without NVIDIA drivers being installed in the container? That seems possible, I'm really not an NVIDIA expert... |
Maybe indeed ! But why did the others had some troubles then. That's weird. |
Whatever, it has always been functionnal for me, and I hope so for the others now. Thanks for having answered my questions. |
Thanks for testing! 🎂 |
* merge-221105: (346 commits) UX: Improve layout of form fields in photo edit dialog Account: Disable "gender" dropdown when busy photoprism#98 Docker: Change "docker-compose" command to "docker compose" photoprism#1192 Docker: Use docker compose profiles for watchtower example photoprism#1192 Docker: Change "docker-compose" command to "docker compose" photoprism#1192 Frontend: Upgrade dependencies in package.json and package-lock.json Frontend: Update translations.json and package-lock.json Weblate: Update backend translations Weblate: Update frontend translations Weblate: Update frontend translations Develop: Add "FOR TEST AND DEVELOPMENT ONLY" warning to config files NVIDIA: Update docker-compose.yml example photoprism#2613 NVIDIA: Add docker-compose.yml example photoprism#2613 NVIDIA: Update install-gpu.sh script photoprism#2613 Frontend: Update translations.json and package-lock.json Weblate: Update frontend translations Tests: Refactor acceptance tests Tests: Add DateTime unit test Video: Change FFmpeg params for NVidia hardware transcoding photoprism#2613 Frontend: Update package-lock.json ...
I'm using Unraid as well but couldn't get my nvidia gpu to work. I added all the necessary variables to the container. Please help. |
There may be better ways to enable support for Nvidia GPUs than installing the distribution's default drivers, since Nvidia offers a Docker runtime/integration:
Acceptance Criteria:
The text was updated successfully, but these errors were encountered: