`ultralytics 8.3.14` update TensorRT `dynamic` inference (#16953)

Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
pull/16967/head v8.3.14
Laughing 1 month ago committed by GitHub
parent 75b6733678
commit 03a1f58e03
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      ultralytics/__init__.py
  2. 1
      ultralytics/cfg/__init__.py
  3. 2
      ultralytics/nn/autobackend.py

@ -1,6 +1,6 @@
# Ultralytics YOLO 🚀, AGPL-3.0 license
__version__ = "8.3.13"
__version__ = "8.3.14"
import os

@ -1,6 +1,5 @@
# Ultralytics YOLO 🚀, AGPL-3.0 license
import contextlib
import shutil
import subprocess
import sys

@ -501,7 +501,7 @@ class AutoBackend(nn.Module):
# TensorRT
elif self.engine:
if self.dynamic or im.shape != self.bindings["images"].shape:
if self.dynamic and im.shape != self.bindings["images"].shape:
if self.is_trt10:
self.context.set_input_shape("images", im.shape)
self.bindings["images"] = self.bindings["images"]._replace(shape=im.shape)

Loading…
Cancel
Save