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
stablediffusion_migraphx
Commits
ed3fce5a
Commit
ed3fce5a
authored
Jun 19, 2024
by
yaoht
Browse files
修改模型下载地址
parent
ca3ca507
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
17 deletions
+1
-17
README.md
README.md
+1
-17
astro_horse.jpg
astro_horse.jpg
+0
-0
No files found.
README.md
View file @
ed3fce5a
...
...
@@ -70,23 +70,7 @@ pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
```
#### 模型下载
```
bash
## 下载 SD v2.1 model
git lfs
install
git clone https://huggingface.co/stabilityai/stable-diffusion-2-1-base
## 或者使用国内镜像网站,下载速度更快
git clone https://hf-mirror.com/stabilityai/stable-diffusion-2-1-base
```
#### onnx模型导出
使用下面命令导出onnx模型:
```
bash
optimum-cli
export
onnx
--model
stable-diffusion-2-1-base sd21-onnx
--task
stable-diffusion
```
其中,stabilityai/stable-diffusion-2-1-base为模型下载目录,sd21-onnx为onnx导出模型目录,下面运行示例命令中的onnx-model-path参数就设置为该onnx模型目录。
百度云下载 链接:https://pan.baidu.com/s/1JgJ0WUlhpey-ALsA48iyWw?pwd=mpp1 提取码:mpp1 下载后模型的目录为sd21-onnx,下面运行示例命令中的onnx-model-path参数就设置为该onnx模型目录。
#### 运行示例
...
...
astro_horse.jpg
View replaced file @
ca3ca507
View file @
ed3fce5a
30.8 KB
|
W:
|
H:
30.8 KB
|
W:
|
H:
2-up
Swipe
Onion skin
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