Docker download onnxruntime-gpu 1.15.1 for Jetson Linux 35.2.1 (#10389)
Co-authored-by: UltralyticsAssistant <web@ultralytics.com> Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com> Co-authored-by: hdnh2006 <henry.matucv@gmail.com>
This commit is contained in:
parent
6beccb6b5e
commit
b01fcd943f
2 changed files with 12 additions and 1 deletions
|
|
@ -28,8 +28,12 @@ ADD https://github.com/ultralytics/assets/releases/download/v8.2.0/yolov8n.pt /u
|
||||||
# Remove opencv-python from Ultralytics dependencies as it conflicts with opencv-python installed in base image
|
# Remove opencv-python from Ultralytics dependencies as it conflicts with opencv-python installed in base image
|
||||||
RUN grep -v "opencv-python" pyproject.toml > temp.toml && mv temp.toml pyproject.toml
|
RUN grep -v "opencv-python" pyproject.toml > temp.toml && mv temp.toml pyproject.toml
|
||||||
|
|
||||||
|
# Download onnxruntime-gpu 1.15.1 for Jetson Linux 35.2.1 (JetPack 5.1). Other versions can be seen in https://elinux.org/Jetson_Zoo#ONNX_Runtime
|
||||||
|
RUN wget https://nvidia.box.com/shared/static/mvdcltm9ewdy2d5nurkiqorofz1s53ww.whl -O onnxruntime_gpu-1.15.1-cp38-cp38-linux_aarch64.whl
|
||||||
|
|
||||||
# Install pip packages manually for TensorRT compatibility https://github.com/NVIDIA/TensorRT/issues/2567
|
# Install pip packages manually for TensorRT compatibility https://github.com/NVIDIA/TensorRT/issues/2567
|
||||||
RUN python3 -m pip install --upgrade pip wheel
|
RUN python3 -m pip install --upgrade pip wheel
|
||||||
|
RUN pip install onnxruntime_gpu-1.15.1-cp38-cp38-linux_aarch64.whl
|
||||||
RUN pip install --no-cache tqdm matplotlib pyyaml psutil pandas onnx
|
RUN pip install --no-cache tqdm matplotlib pyyaml psutil pandas onnx
|
||||||
RUN pip install --no-cache -e ".[export]"
|
RUN pip install --no-cache -e ".[export]"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -419,7 +419,14 @@ def check_torchvision():
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# Compatibility table
|
# Compatibility table
|
||||||
compatibility_table = {"2.0": ["0.15"], "1.13": ["0.14"], "1.12": ["0.13"]}
|
compatibility_table = {
|
||||||
|
"2.3": ["0.18"],
|
||||||
|
"2.2": ["0.17"],
|
||||||
|
"2.1": ["0.16"],
|
||||||
|
"2.0": ["0.15"],
|
||||||
|
"1.13": ["0.14"],
|
||||||
|
"1.12": ["0.13"],
|
||||||
|
}
|
||||||
|
|
||||||
# Extract only the major and minor versions
|
# Extract only the major and minor versions
|
||||||
v_torch = ".".join(torch.__version__.split("+")[0].split(".")[:2])
|
v_torch = ".".join(torch.__version__.split("+")[0].split(".")[:2])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue