Commit ed3fce5a authored by yaoht's avatar yaoht
Browse files

修改模型下载地址

parent ca3ca507
......@@ -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

30.8 KB | W: | H:

astro_horse.jpg

30.8 KB | W: | H:

astro_horse.jpg
astro_horse.jpg
astro_horse.jpg
astro_horse.jpg
  • 2-up
  • Swipe
  • Onion skin
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