Ultralytics TensorRT10 update (#13933)

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
pull/13912/head
Glenn Jocher 5 months ago committed by GitHub
parent fb6d8c0123
commit f5c0395a05
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      docker/Dockerfile
  2. 2
      ultralytics/engine/exporter.py
  3. 2
      ultralytics/nn/autobackend.py

@ -4,7 +4,7 @@
# Start FROM PyTorch image https://hub.docker.com/r/pytorch/pytorch or nvcr.io/nvidia/pytorch:23.03-py3
FROM pytorch/pytorch:2.2.2-cuda12.1-cudnn8-runtime
RUN pip install --no-cache-dir nvidia-tensorrt --index-url https://pypi.ngc.nvidia.com
RUN pip install --no-cache-dir tensorrt
# Set environment variables
ENV APP_HOME /usr/src/ultralytics

@ -686,7 +686,7 @@ class Exporter:
import tensorrt as trt # noqa
except ImportError:
if LINUX:
check_requirements("nvidia-tensorrt", cmds="-U --index-url https://pypi.ngc.nvidia.com")
check_requirements("tensorrt", cmds="-U")
import tensorrt as trt # noqa
check_version(trt.__version__, "7.0.0", hard=True) # require tensorrt>=7.0.0

@ -225,7 +225,7 @@ class AutoBackend(nn.Module):
import tensorrt as trt # noqa https://developer.nvidia.com/nvidia-tensorrt-download
except ImportError:
if LINUX:
check_requirements("nvidia-tensorrt", cmds="-U --index-url https://pypi.ngc.nvidia.com")
check_requirements("tensorrt", cmds="-U")
import tensorrt as trt # noqa
check_version(trt.__version__, "7.0.0", hard=True) # require tensorrt>=7.0.0
if device.type == "cpu":

Loading…
Cancel
Save