
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
torchvision是PyTorch的计算机视觉扩展库,提供图像变换、预训练模型、数据集加载等功能。本Docker镜像为NVIDIA Jetson设备优化,集成了运行torchvision所需的全部依赖组件,支持多个版本以匹配不同PyTorch和JetPack/L4T环境,适用于嵌入式平台上的计算机视觉模型开发、训练与推理部署。
| 版本号 | 系统要求 | 依赖组件 | Dockerfile |
|---|---|---|---|
| torchvision:0.15.1 | L4T ['==35.*'](JetPack 5.x) | https://github.com/dusty-nv/jetson-containers/tree/master/packages/build/build-essential%E3%80%81https://github.com/dusty-nv/jetson-containers/tree/master/packages/cuda/cuda%E3%80%81https://github.com/dusty-nv/jetson-containers/tree/master/packages/cuda/cudnn%E3%80%81https://github.com/dusty-nv/jetson-containers/tree/master/packages/build/python%E3%80%81https://github.com/dusty-nv/jetson-containers/tree/master/packages/numpy%E3%80%81https://github.com/dusty-nv/jetson-containers/tree/master/packages/build/cmake/cmake_pip%E3%80%81https://github.com/dusty-nv/jetson-containers/tree/master/packages/onnx%E3%80%81https://github.com/dusty-nv/jetson-containers/tree/master/packages/pytorch | https://github.com/dusty-nv/jetson-containers/tree/master/packages/pytorch/torchvision/Dockerfile |
| torchvision:0.16.2 | L4T ['>=35'](JetPack 5.1+) | https://github.com/dusty-nv/jetson-containers/tree/master/packages/build/build-essential%E3%80%81https://github.com/dusty-nv/jetson-containers/tree/master/packages/cuda/cuda%E3%80%81https://github.com/dusty-nv/jetson-containers/tree/master/packages/cuda/cudnn%E3%80%81https://github.com/dusty-nv/jetson-containers/tree/master/packages/build/python%E3%80%81https://github.com/dusty-nv/jetson-containers/tree/master/packages/numpy%E3%80%81https://github.com/dusty-nv/jetson-containers/tree/master/packages/build/cmake/cmake_pip%E3%80%81https://github.com/dusty-nv/jetson-containers/tree/master/packages/onnx%E3%80%81https://github.com/dusty-nv/jetson-containers/tree/master/packages/pytorch | https://github.com/dusty-nv/jetson-containers/tree/master/packages/pytorch/torchvision/Dockerfile |
torchvision:0.17.2(别名:torchvision) | L4T ['>=35'](JetPack 5.1+) | https://github.com/dusty-nv/jetson-containers/tree/master/packages/build/build-essential%E3%80%81https://github.com/dusty-nv/jetson-containers/tree/master/packages/cuda/cuda%E3%80%81https://github.com/dusty-nv/jetson-containers/tree/master/packages/cuda/cudnn%E3%80%81https://github.com/dusty-nv/jetson-containers/tree/master/packages/build/python%E3%80%81https://github.com/dusty-nv/jetson-containers/tree/master/packages/numpy%E3%80%81https://github.com/dusty-nv/jetson-containers/tree/master/packages/build/cmake/cmake_pip%E3%80%81https://github.com/dusty-nv/jetson-containers/tree/master/packages/onnx%E3%80%81https://github.com/dusty-nv/jetson-containers/tree/master/packages/pytorch | https://github.com/dusty-nv/jetson-containers/tree/master/packages/pytorch/torchvision/Dockerfile |
| torchvision:0.18.0 | L4T ['>=35'](JetPack 5.1+) | https://github.com/dusty-nv/jetson-containers/tree/master/packages/build/build-essential%E3%80%81https://github.com/dusty-nv/jetson-containers/tree/master/packages/cuda/cuda%E3%80%81https://github.com/dusty-nv/jetson-containers/tree/master/packages/cuda/cudnn%E3%80%81https://github.com/dusty-nv/jetson-containers/tree/master/packages/build/python%E3%80%81https://github.com/dusty-nv/jetson-containers/tree/master/packages/numpy%E3%80%81https://github.com/dusty-nv/jetson-containers/tree/master/packages/build/cmake/cmake_pip%E3%80%81https://github.com/dusty-nv/jetson-containers/tree/master/packages/onnx%E3%80%81https://github.com/dusty-nv/jetson-containers/tree/master/packages/pytorch | https://github.com/dusty-nv/jetson-containers/tree/master/packages/pytorch/torchvision/Dockerfile |
| torchvision:0.11.1 | L4T ['==32.*'](JetPack 4.x) | https://github.com/dusty-nv/jetson-containers/tree/master/packages/build/build-essential%E3%80%81https://github.com/dusty-nv/jetson-containers/tree/master/packages/cuda/cuda%E3%80%81https://github.com/dusty-nv/jetson-containers/tree/master/packages/cuda/cudnn%E3%80%81https://github.com/dusty-nv/jetson-containers/tree/master/packages/build/python%E3%80%81https://github.com/dusty-nv/jetson-containers/tree/master/packages/numpy%E3%80%81https://github.com/dusty-nv/jetson-containers/tree/master/packages/build/cmake/cmake_pip%E3%80%81https://github.com/dusty-nv/jetson-containers/tree/master/packages/onnx%E3%80%81https://github.com/dusty-nv/jetson-containers/tree/master/packages/pytorch | https://github.com/dusty-nv/jetson-containers/tree/master/packages/pytorch/torchvision/Dockerfile |
| torchvision:0.10.0 | L4T ['==32.*'](JetPack 4.x) | https://github.com/dusty-nv/jetson-containers/tree/master/packages/build/build-essential%E3%80%81https://github.com/dusty-nv/jetson-containers/tree/master/packages/cuda/cuda%E3%80%81https://github.com/dusty-nv/jetson-containers/tree/master/packages/cuda/cudnn%E3%80%81https://github.com/dusty-nv/jetson-containers/tree/master/packages/build/python%E3%80%81https://github.com/dusty-nv/jetson-containers/tree/master/packages/numpy%E3%80%81https://github.com/dusty-nv/jetson-containers/tree/master/packages/build/cmake/cmake_pip%E3%80%81https://github.com/dusty-nv/jetson-containers/tree/master/packages/onnx%E3%80%81https://github.com/dusty-nv/jetson-containers/tree/master/packages/pytorch | https://github.com/dusty-nv/jetson-containers/tree/master/packages/pytorch/torchvision/Dockerfile |
注:
torchvision:0.17.2是主要依赖镜像,被多个上层应用依赖,包括https://github.com/dusty-nv/jetson-containers/tree/master/packages/audio/audiocraft%E3%80%81https://github.com/dusty-nv/jetson-containers/tree/master/packages/llm/auto_awq%E3%80%81https://github.com/dusty-nv/jetson-containers/tree/master/packages/diffusion/stable-diffusion%E7%AD%89%E3%80%82
| 仓库/标签 | 发布日期 | 架构 | 大小 |
|---|---|---|---|
| https://hub.docker.com/r/dustynv/torchvision/tags | 2023-12-14 | arm64 | 1.1GB |
| https://hub.docker.com/r/dustynv/torchvision/tags | 2023-12-11 | arm64 | 5.5GB |
| https://hub.docker.com/r/dustynv/torchvision/tags | 2023-12-14 | arm64 | 5.5GB |
| https://hub.docker.com/r/dustynv/torchvision/tags | 2023-11-05 | arm64 | 5.4GB |
兼容性说明:
- L4T R32.7容器可运行于JetPack 4.6+(L4T R32.7.x)
- L4T R35.x容器可运行于JetPack 5.1+(L4T R35.x)
jetson-containers工具可自动处理镜像拉取/构建和运行配置,支持自动匹配设备兼容版本:
bash# 自动拉取或构建兼容镜像 jetson-containers run $(autotag torchvision) # 显式指定镜像版本 jetson-containers run dustynv/torchvision:r35.3.1
手动使用docker run需指定NVIDIA运行时和必要参数:
bash# 基本交互式运行 sudo docker run --runtime nvidia -it --rm --network=host dustynv/torchvision:r35.3.1
通过-v参数挂载主机目录到容器,实现数据共享:
bashjetson-containers run -v /host/data:/container/data $(autotag torchvision)
在容器中直接执行命令而非交互式shell:
bashjetson-containers run $(autotag torchvision) python -c "import torchvision; print(torchvision.__version__)"
若需手动构建镜像,先完成https://github.com/dusty-nv/jetson-containers/tree/master/docs/setup.md%EF%BC%8C%E5%86%8D%E6%89%A7%E8%A1%8C%EF%BC%9A
bashjetson-containers build torchvision
构建过程会自动处理依赖组件编译和集成,并进行测试。使用--help查看更多构建选项:
bashjetson-containers build torchvision --help
--network=host可直接访问主机网络,便于调试和外部服务连接。您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务