mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-30 10:37:42 +03:00
Formatting
This commit is contained in:
parent
1e6c1bc331
commit
04fb3689e5
@ -44,6 +44,7 @@ if TRT_SUPPORT:
|
|||||||
else:
|
else:
|
||||||
return logging.DEBUG
|
return logging.DEBUG
|
||||||
|
|
||||||
|
|
||||||
class TensorRTDetectorConfig(BaseDetectorConfig):
|
class TensorRTDetectorConfig(BaseDetectorConfig):
|
||||||
type: Literal[DETECTOR_KEY]
|
type: Literal[DETECTOR_KEY]
|
||||||
device: int = Field(default=0, title="GPU Device Index")
|
device: int = Field(default=0, title="GPU Device Index")
|
||||||
@ -227,7 +228,6 @@ class TensorRtDetector(DetectionApi):
|
|||||||
"TensorRT detector is no longer supported on amd64 system. Please use ONNX detector instead, see https://docs.frigate.video/configuration/object_detectors#onnx for more information."
|
"TensorRT detector is no longer supported on amd64 system. Please use ONNX detector instead, see https://docs.frigate.video/configuration/object_detectors#onnx for more information."
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
assert TRT_SUPPORT, (
|
assert TRT_SUPPORT, (
|
||||||
f"TensorRT libraries not found, {DETECTOR_KEY} detector not present"
|
f"TensorRT libraries not found, {DETECTOR_KEY} detector not present"
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user