mirror of
https://github.com/immich-app/immich.git
synced 2025-07-09 03:04:16 -04:00
fix path
This commit is contained in:
parent
efaf70eb9d
commit
19ee48f6f0
@ -24,9 +24,9 @@ class RknnSession:
|
||||
self.model_path = Path(model_path)
|
||||
self.ort_model_path = str(self.model_path).replace(".rknn", ".onnx")
|
||||
|
||||
if 'textual' in self.model_path.name:
|
||||
if 'textual' in str(self.model_path):
|
||||
self.tpe = settings.rknn_textual_threads
|
||||
elif 'visual' in self.model_path.name:
|
||||
elif 'visual' in str(self.model_path):
|
||||
self.tpe = settings.rknn_visual_threads
|
||||
else:
|
||||
self.tpe = settings.rknn_facial_detection_threads
|
||||
|
Loading…
x
Reference in New Issue
Block a user