Commit b96b7342 authored by bailuo's avatar bailuo
Browse files

update readme

parent c063a387
Pipeline #1813 failed with stages
...@@ -29,29 +29,30 @@ Inpaint-Anything核心思想是结合不同模型的优势,以构建一个非 ...@@ -29,29 +29,30 @@ Inpaint-Anything核心思想是结合不同模型的优势,以构建一个非
## 环境配置 ## 环境配置
``` ```
mv inpaint-anything_pytoch inpaint-anything # 去框架名后缀 mv inpaint-anything_pytorch inpaint-anything # 去框架名后缀
# docker的-v 路径、docker_name和imageID根据实际情况修改 # docker的-v 路径、docker_name和imageID根据实际情况修改
``` ```
### Docker(方法一) ### Docker(方法一)
<!-- 此处提供[光源](https://www.sourcefind.cn/#/service-details)拉取docker镜像的地址与使用步骤 --> <!-- 此处提供[光源](https://www.sourcefind.cn/#/service-details)拉取docker镜像的地址与使用步骤 -->
``` ```
docker pull image.sourcefind.cn:5000/dcu/admin/base/pytorch:2.1.0-ubuntu20.04-dtk24.04.2-py3.10 # 本镜像imageID为:2f1f619d0182 docker pull image.sourcefind.cn:5000/dcu/admin/base/pytorch:2.1.0-ubuntu20.04-dtk24.04.2-py3.10 # 本镜像imageID为:2f1f619d0182
docker run -it -v /path/your_code_data/:/path/your_code_data/ -v /opt/hyhal/:/opt/hyhal/:ro --shm-size=16G --privileged=true --device=/dev/kfd --device=/dev/dri/ --group-add video --name docker_name imageID bash docker run -it -v /path/your_code_data/:/path/your_code_data/ -v /opt/hyhal/:/opt/hyhal/:ro --shm-size=16G --privileged=true --device=/dev/kfd --device=/dev/dri/ --group-add video --network=host --name docker_name imageID bash
cd /your_code_path/inpaint-anything cd /your_code_path/inpaint-anything
pip install -e segment_anything pip install -e segment_anything
pip install diffusers transformers accelerate scipy safetensors pip install diffusers transformers accelerate scipy safetensors
pip install -r requirements.txt pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/
# 如果pip安装下载慢建议多尝试更换镜像源(下同)
``` ```
### Dockerfile(方法二) ### Dockerfile(方法二)
<!-- 此处提供dockerfile的使用方法 --> <!-- 此处提供dockerfile的使用方法 -->
``` ```
cd /your_code_path/inpaint-anything/docker cd /your_code_path/inpaint-anything/docker
docker build --no-cache -t codestral:latest . docker build --no-cache -t codestral:latest .
docker run -it -v /path/your_code_data/:/path/your_code_data/ -v /opt/hyhal/:/opt/hyhal/:ro --shm-size=16G --privileged=true --device=/dev/kfd --device=/dev/dri/ --group-add video --name docker_name imageID bash docker run -it -v /path/your_code_data/:/path/your_code_data/ -v /opt/hyhal/:/opt/hyhal/:ro --shm-size=16G --privileged=true --device=/dev/kfd --device=/dev/dri/ --group-add video --network=host --name docker_name imageID bash
cd /your_code_path/inpaint-anything cd /your_code_path/inpaint-anything
pip install -e segment_anything pip install -e segment_anything
pip install diffusers transformers accelerate scipy safetensors pip install diffusers transformers accelerate scipy safetensors
pip install -r requirements.txt pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/
``` ```
### Anaconda(方法三) ### Anaconda(方法三)
<!-- 此处提供本地配置、编译的详细步骤,例如: --> <!-- 此处提供本地配置、编译的详细步骤,例如: -->
...@@ -68,7 +69,7 @@ pytorch: 2.1.0 ...@@ -68,7 +69,7 @@ pytorch: 2.1.0
``` ```
pip install -e segment_anything pip install -e segment_anything
pip install diffusers transformers accelerate scipy safetensors pip install diffusers transformers accelerate scipy safetensors
pip install -r requirements.txt pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/
``` ```
## 数据集 ## 数据集
......
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