Ultralytics TensorRT10 update (#13933)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
fb6d8c0123
commit
f5c0395a05
3 changed files with 3 additions and 3 deletions
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
# Start FROM PyTorch image https://hub.docker.com/r/pytorch/pytorch or nvcr.io/nvidia/pytorch:23.03-py3
|
# 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
|
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
|
# Set environment variables
|
||||||
ENV APP_HOME /usr/src/ultralytics
|
ENV APP_HOME /usr/src/ultralytics
|
||||||
|
|
|
||||||
|
|
@ -686,7 +686,7 @@ class Exporter:
|
||||||
import tensorrt as trt # noqa
|
import tensorrt as trt # noqa
|
||||||
except ImportError:
|
except ImportError:
|
||||||
if LINUX:
|
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
|
import tensorrt as trt # noqa
|
||||||
check_version(trt.__version__, "7.0.0", hard=True) # require tensorrt>=7.0.0
|
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
|
import tensorrt as trt # noqa https://developer.nvidia.com/nvidia-tensorrt-download
|
||||||
except ImportError:
|
except ImportError:
|
||||||
if LINUX:
|
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
|
import tensorrt as trt # noqa
|
||||||
check_version(trt.__version__, "7.0.0", hard=True) # require tensorrt>=7.0.0
|
check_version(trt.__version__, "7.0.0", hard=True) # require tensorrt>=7.0.0
|
||||||
if device.type == "cpu":
|
if device.type == "cpu":
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue