mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-11 05:35:25 +03:00
Remove unnecessary size check in TensorRT v10 block
This commit is contained in:
parent
9a642086f9
commit
408f295416
@ -175,9 +175,6 @@ class TensorRtDetector(DetectionApi):
|
|||||||
if len(binding_dims) == 4:
|
if len(binding_dims) == 4:
|
||||||
# explicit batch case (TensorRT 7+)
|
# explicit batch case (TensorRT 7+)
|
||||||
size = trt.volume(binding_dims)
|
size = trt.volume(binding_dims)
|
||||||
elif len(binding_dims) == 3:
|
|
||||||
# implicit batch case (TensorRT 6 or older)
|
|
||||||
size = trt.volume(binding_dims) * self.engine.max_batch_size
|
|
||||||
else:
|
else:
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
"bad dims of binding %s: %s" % (binding, str(binding_dims))
|
"bad dims of binding %s: %s" % (binding, str(binding_dims))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user