[PR #7450] [MERGED] fix(ml): only use openvino if a gpu is available #11633

Closed
opened 2026-02-05 14:43:07 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/immich-app/immich/pull/7450
Author: @mertalev
Created: 2/27/2024
Status: Merged
Merged: 2/27/2024
Merged by: @mertalev

Base: mainHead: fix/ml-openvino-device-type


📝 Commits (1)

📊 Changes

2 files changed (+24 additions, -20 deletions)

View changed files

📝 machine-learning/app/models/base.py (+9 -9)
📝 machine-learning/app/test_main.py (+15 -11)

📄 Description

Description

Dynamic axes seem not to work on CPU, so this PR avoids OpenVINO unless there's an eligible GPU. The performance difference between OpenVINO and generic CPU will be negligible so it doesn't really matter in this case.

Fixes #7406


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/immich-app/immich/pull/7450 **Author:** [@mertalev](https://github.com/mertalev) **Created:** 2/27/2024 **Status:** ✅ Merged **Merged:** 2/27/2024 **Merged by:** [@mertalev](https://github.com/mertalev) **Base:** `main` ← **Head:** `fix/ml-openvino-device-type` --- ### 📝 Commits (1) - [`419da0d`](https://github.com/immich-app/immich/commit/419da0dacf720ef120a34d94efe62a0583ce7bc9) use `device_type` ### 📊 Changes **2 files changed** (+24 additions, -20 deletions) <details> <summary>View changed files</summary> 📝 `machine-learning/app/models/base.py` (+9 -9) 📝 `machine-learning/app/test_main.py` (+15 -11) </details> ### 📄 Description ## Description Dynamic axes seem not to work on CPU, so this PR avoids OpenVINO unless there's an eligible GPU. The performance difference between OpenVINO and generic CPU will be negligible so it doesn't really matter in this case. Fixes #7406 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-05 14:43:07 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#11633