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
DiffBIR_pytorch
Commits
ba3ffbe0
Commit
ba3ffbe0
authored
Oct 21, 2024
by
mashun1
Browse files
Update README.md
parent
dcf85f5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
README.md
README.md
+11
-2
No files found.
README.md
View file @
ba3ffbe0
...
...
@@ -33,6 +33,7 @@
docker pull image.sourcefind.cn:5000/dcu/admin/base/pytorch:1.13.1-centos7.6-dtk-23.04.1-py39-latest
docker run --shm-size 10g --network=host --name=diffbir --privileged --device=/dev/kfd --device=/dev/dri --group-add video --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -v 项目地址(绝对路径):/home/ -it <your IMAGE ID> bash
pip install -r requirements.txt
pip uninstall xformers
### Dockerfile(方法二)
...
...
@@ -40,6 +41,7 @@
docker build -t <IMAGE_NAME>:<TAG> .
# <your IMAGE ID>用以上拉取的docker的镜像ID替换
docker run -it --shm-size 10g --network=host --name=diffbir --privileged --device=/dev/kfd --device=/dev/dri --group-add video --cap-add=SYS_PTRACE --security-opt seccomp=unconfined <your IMAGE ID> bash
pip uninstall xformers
...
...
@@ -60,6 +62,7 @@ Tips:以上dtk驱动、python、torch等DCU相关工具版本需要严格一
2、其它非特殊库参照requirements.txt安装
pip install -r requirements.txt
pip uninstall xformers
## 数据集
...
...
@@ -109,8 +112,14 @@ Tips:以上dtk驱动、python、torch等DCU相关工具版本需要严格一
### 阶段二
1、模型准备(Stable Diffusion v2.1): https://huggingface.co/stabilityai/stable-diffusion-2-1-base/resolve/main/v2-1_512-ema-pruned.ckpt
\
或者从SCNet下载
[
stable-diffusion-2-1-base
](
http://113.200.138.88:18080/aimodels/stable-diffusion-2-1-base/-/raw/main/v2-1_512-ema-pruned.ckpt?ref_type=heads&inline=false
)
1、模型准备
-
(Stable Diffusion v2.1): https://huggingface.co/stabilityai/stable-diffusion-2-1-base/resolve/main/v2-1_512-ema-pruned.ckpt
\
或者从SCNet下载
[
stable-diffusion-2-1-base
](
http://113.200.138.88:18080/aimodels/stable-diffusion-2-1-base/-/raw/main/v2-1_512-ema-pruned.ckpt?
ref_type=heads&inline=false)
-
[
open_clip
](
http://113.200.138.88:18080/aimodels/CLIP-ViT-H-14-laion2B-s32B-b79K/-/blob/main/open_clip_pytorch_model.bin
)
下载这些模型并放入
`weights`
文件夹中(需自行创建)。
2、初始化模型参数
...
...
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