Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
Inpaint-Anything_pytorch
Commits
b96b7342
Commit
b96b7342
authored
Oct 29, 2024
by
bailuo
Browse files
update readme
parent
c063a387
Pipeline
#1813
failed with stages
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
README.md
README.md
+7
-6
icon.png
icon.png
+0
-0
requirements.txt
requirements.txt
+0
-0
No files found.
README.md
View file @
b96b7342
...
...
@@ -29,29 +29,30 @@ Inpaint-Anything核心思想是结合不同模型的优势,以构建一个非
## 环境配置
```
mv inpaint-anything_pytoch inpaint-anything # 去框架名后缀
mv inpaint-anything_pyto
r
ch inpaint-anything # 去框架名后缀
# docker的-v 路径、docker_name和imageID根据实际情况修改
```
### 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 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
pip install -e segment_anything
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的使用方法 -->
```
cd /your_code_path/inpaint-anything/docker
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
pip install -e segment_anything
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(方法三)
<!-- 此处提供本地配置、编译的详细步骤,例如: -->
...
...
@@ -68,7 +69,7 @@ pytorch: 2.1.0
```
pip install -e segment_anything
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/
```
## 数据集
无
...
...
AIGC
.png
→
icon
.png
View file @
b96b7342
File moved
requirement.txt
→
requirement
s
.txt
View file @
b96b7342
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment