Replies: 2 comments 6 replies
-
|
The same issue occurred while face detection with my device CPU INTEL N5095. I changed the model from One more thing to metion is when this exception was thown, the undo queue got stuck, but the ml container still reported as healthy, perhaps some exeption handling logic should be investigated. |
Beta Was this translation helpful? Give feedback.
-
|
This is not a bug as far as I can tell, but just a quirk of OpenVINO’s memory allocation. OpenVINO seems to handle batching in a way that’s efficient for speed but not memory usage. As it encounters batches of different sizes, it makes allocations specific to each particular batch size to quickly reuse when it encounters that batch size again. In this case, a batch is the number of faces in an image. This means that as it encounters images with varying numbers of faces (especially ones with many faces), it can use more memory over time. This increase plateaus when the model stops seeing new batch sizes. I can add an env to explicitly disable batching for cases when the GPU doesn’t have enough memory to handle this. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The bug
When running Face Detection on a system configured with OpenVino ML - the immich_machine_learning container will eventually throw an exception complaining out of GPU resources. immich_machine_learning does not recover.
This has been recreated triggering "ALL" Face Detection, but the exception can appear at an indeterminate time after some success with face detection.
The OS that Immich Server is running on
DSM 7.2.1-69057 Update 5 | Docker version 20.10.23
Version of Immich Server
v1.117.0
Version of Immich Mobile App
v1.117.0 build.162
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
...
Relevant log output
Additional information
Host hardware:
Synology DS423+
CPU: INTEL Celeron J4125
Physical memory: 18 GB
Beta Was this translation helpful? Give feedback.
All reactions