mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
coreml
This commit is contained in:
parent
46869f664d
commit
058a10d0c6
2 changed files with 9 additions and 0 deletions
|
|
@ -79,6 +79,7 @@ SUPPORTED_PROVIDERS = [
|
||||||
"CUDAExecutionProvider",
|
"CUDAExecutionProvider",
|
||||||
"ROCMExecutionProvider",
|
"ROCMExecutionProvider",
|
||||||
"OpenVINOExecutionProvider",
|
"OpenVINOExecutionProvider",
|
||||||
|
"CoreMLExecutionProvider",
|
||||||
"CPUExecutionProvider",
|
"CPUExecutionProvider",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -96,6 +96,14 @@ class OrtSession:
|
||||||
"precision": "FP32",
|
"precision": "FP32",
|
||||||
"cache_dir": (self.model_path.parent / "openvino").as_posix(),
|
"cache_dir": (self.model_path.parent / "openvino").as_posix(),
|
||||||
}
|
}
|
||||||
|
case "CoreMLExecutionProvider":
|
||||||
|
options = {
|
||||||
|
"ModelFormat": "MLProgram",
|
||||||
|
"MLComputeUnits": "ALL",
|
||||||
|
"SpecializationStrategy": "FastPrediction",
|
||||||
|
"AllowLowPrecisionAccumulationOnGPU": "1",
|
||||||
|
"ModelCacheDirectory": (self.model_path.parent / "coreml").as_posix(),
|
||||||
|
}
|
||||||
case _:
|
case _:
|
||||||
options = {}
|
options = {}
|
||||||
provider_options.append(options)
|
provider_options.append(options)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue