mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-08-04 13:47:37 +02:00
parent
d69916694b
commit
178117183e
@ -43,13 +43,6 @@ if TRT_SUPPORT:
|
|||||||
return logging.CRITICAL
|
return logging.CRITICAL
|
||||||
else:
|
else:
|
||||||
return logging.DEBUG
|
return logging.DEBUG
|
||||||
elif platform.machine() == "x86_64":
|
|
||||||
logger.error(
|
|
||||||
"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."
|
|
||||||
)
|
|
||||||
raise ImportError(
|
|
||||||
"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."
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
class TensorRTDetectorConfig(BaseDetectorConfig):
|
class TensorRTDetectorConfig(BaseDetectorConfig):
|
||||||
@ -227,6 +220,14 @@ class TensorRtDetector(DetectionApi):
|
|||||||
]
|
]
|
||||||
|
|
||||||
def __init__(self, detector_config: TensorRTDetectorConfig):
|
def __init__(self, detector_config: TensorRTDetectorConfig):
|
||||||
|
if platform.machine() == "x86_64":
|
||||||
|
logger.error(
|
||||||
|
"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."
|
||||||
|
)
|
||||||
|
raise ImportError(
|
||||||
|
"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