mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-16 03:52:09 +03:00
Formatting
This commit is contained in:
parent
33042592c7
commit
78ac699610
@ -56,7 +56,9 @@ class ONNXDetector(DetectionApi):
|
||||
if providers[0] == "ROCMExecutionProvider":
|
||||
# avoid AMD GPU kernel crashes
|
||||
sess_options = ort.SessionOptions()
|
||||
sess_options.graph_optimization_level = ort.GraphOptimizationLevel.ORT_DISABLE_ALL
|
||||
sess_options.graph_optimization_level = (
|
||||
ort.GraphOptimizationLevel.ORT_DISABLE_ALL
|
||||
)
|
||||
|
||||
self.model = ort.InferenceSession(
|
||||
path, providers=providers, provider_options=options
|
||||
|
||||
Loading…
Reference in New Issue
Block a user