Formatting

This commit is contained in:
Nicolas Mowen 2025-07-07 17:52:21 -06:00
parent 1e6c1bc331
commit 04fb3689e5

View File

@ -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"
) )