mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-27 09:07:41 +03:00
ArcFace uses GPU by default, no need for 'CPU' value.
This commit is contained in:
parent
f5d4a4bb6d
commit
b103ce7e2e
@ -151,11 +151,7 @@ class ArcfaceEmbedding(BaseEmbedding):
|
||||
self.runner = ONNXModelRunner(
|
||||
os.path.join(self.download_path, self.model_file),
|
||||
device=self.config.face_recognition.device
|
||||
or (
|
||||
"GPU"
|
||||
if self.config.face_recognition.model_size == "large"
|
||||
else "CPU"
|
||||
),
|
||||
or "GPU",
|
||||
)
|
||||
|
||||
def _preprocess_inputs(self, raw_inputs):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user