Commit 6ec642b0 authored by yuhai's avatar yuhai
Browse files

Update README.md

parent 09ed8264
...@@ -36,8 +36,9 @@ pip install opencv-python pycocotools matplotlib onnxruntime onnx ...@@ -36,8 +36,9 @@ pip install opencv-python pycocotools matplotlib onnxruntime onnx
``` ```
### Dockerfile(方法二) ### Dockerfile(方法二)
``` ```
docker build --no-cache -t image.sourcefind.cn:5000/dcu/admin/base/pytorch:1.10.0-centos7.6-dtk-22.10-py39-latest . cd /path/to/dockerfile
docker run -it --network=host --name=SAM_pytorch --privileged --device=/dev/kfd --device=/dev/dri --ipc=host --shm-size=16G --group-add video --cap-add=SYS_PTRACE <上面获得的镜像ID> /bin/bash docker build --no-cache -t SAM_pytorch:latest .
docker run -it --network=host --name=SAM_pytorch --privileged --device=/dev/kfd --device=/dev/dri --ipc=host --shm-size=16g --group-add video --cap-add=SYS_PTRACE -it SAM_pytorch:latest bash
``` ```
安装其他依赖: 安装其他依赖:
``` ```
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment