Giter VIP home page Giter VIP logo

Comments (18)

mertalev avatar mertalev commented on June 8, 2024

I'm guessing you're either missing a driver, or 24.04 is too new for the OpenVINO version in the container. Also, what model is the CPU? I last tested it on a 13700H.

from immich.

Str1atum avatar Str1atum commented on June 8, 2024

It's i9-13900H

I tried with bookworm Debian 6.1 kernel but had no success at all.

from immich.

mertalev avatar mertalev commented on June 8, 2024

Hmm, you can try looking at some of the drivers mentioned in this page. This page also suggests using --group-add. For Compose files, this would mean first running stat -c \"%g\" /dev/dri/render*, then adding the output as:

...
group_add:
  - <output>

Also, for what it's worth, I tested on Fedora.

from immich.

Str1atum avatar Str1atum commented on June 8, 2024

No success - driver installation went smooth but no changes.
And I added this to my hwaccel.ml.ml

openvino:
device_cgroup_rules:
- "c 189:* rmw"
devices:
- /dev/dri:/dev/dri
group_add:
- "993"
volumes:
- /dev/bus/usb:/dev/bus/usb

from immich.

mertalev avatar mertalev commented on June 8, 2024

What's the output of ls -l /dev/dri? Also, can you set LOG_LEVEL=debug, try again and find the line Available OpenVINO devices: in the ML logs?

from immich.

Str1atum avatar Str1atum commented on June 8, 2024

ls -l /dev/dri:

total 0
drwxr-xr-x 2 root root 100 May 16 14:49 by-path
crw-rw---- 1 root video 226, 0 May 16 14:49 card0
crw-rw---- 1 root video 226, 1 May 16 14:49 card1
crw-rw---- 1 root render 226, 128 May 16 14:49 renderD128

Screenshot 16 05 2024 um 18 39 04 PM

from immich.

mertalev avatar mertalev commented on June 8, 2024

Can you also add the output of stat -c \"%g\" /dev/dri/card* to group_add? I think the OpenVINO image is non-root, so it may not be able to access the devices in /dev/dri.

from immich.

Str1atum avatar Str1atum commented on June 8, 2024

Screenshot 16 05 2024 um 21 50 06 PM

Screenshot 16 05 2024 um 21 50 20 PM

but still the same error

Screenshot 16 05 2024 um 21 50 57 PM

from immich.

mertalev avatar mertalev commented on June 8, 2024

Try adding this:

    environment:
      - NEOReadDebugKeys=1
      - OverrideGpuAddressSpace=48

from immich.

Str1atum avatar Str1atum commented on June 8, 2024

that seems to have worked

Screenshot 16 05 2024 um 23 55 22 PM

from immich.

mertalev avatar mertalev commented on June 8, 2024

Sweet! That means it's a bug in intel-compute-runtime.

from immich.

Str1atum avatar Str1atum commented on June 8, 2024

So anything we can do about that or do I just need to keep that compose extension forever?

from immich.

mertalev avatar mertalev commented on June 8, 2024

We would need the latest patched release for intel-compute-runtime in the image, which will take some time to be available in package managers. You can just keep those envs around until then.

from immich.

mertalev avatar mertalev commented on June 8, 2024

I decided to add these to the hwaccel.ml.yml file in the meantime: #9541.

from immich.

vuongtt92 avatar vuongtt92 commented on June 8, 2024

I added this to the openvino section in hwaccel.ml.yml but it still doesn't work. Mine is intel N5015 installing Xpenology 7.2. Could you please help? The log said "no gpu device found in openvino"
```
environment:
- NEOReadDebugKeys=1
- OverrideGpuAddressSpace=48

from immich.

mertalev avatar mertalev commented on June 8, 2024

That fix only applies to kernels 6.7.5 or newer. I don't imagine a Synology server would have such a new kernel. It could be that the kernel is too old instead and/or that you're missing a driver.

from immich.

vuongtt92 avatar vuongtt92 commented on June 8, 2024

so there's nothing I can do about it? I see that hardware accelerator works well with Plex while transcoding but I've tried many fixes but can't get it work with immich ML

from immich.

mertalev avatar mertalev commented on June 8, 2024

I can't say for certain, but I wouldn't be surprised if it's impossible without a newer host environment.

But on the other hand, your processor would likely run into other issues with OpenVINO, so you may have had to use CPU instead anyway. I can only recommend OpenVINO for Iris Xe and Arc graphics - anything else is too unreliable from what I've seen.

from immich.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.