mirror of
https://github.com/immich-app/immich.git
synced 2025-06-02 13:14:54 -04:00
coreml
This commit is contained in:
parent
dd1fcd5be5
commit
543bc72ae3
@ -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…
x
Reference in New Issue
Block a user