init commit
Browse files
README.md
CHANGED
@@ -86,18 +86,6 @@ It is highly recommended to use this model in a webui way. webui provides a visu
|
|
86 |
|
87 |
https://github.com/IDEA-CCNL/stable-diffusion-webui/blob/master/README.md
|
88 |
|
89 |
-
### 全精度 Full precision
|
90 |
-
|
91 |
-
```py
|
92 |
-
from diffusers import StableDiffusionPipeline
|
93 |
-
|
94 |
-
pipe = StableDiffusionPipeline.from_pretrained("IDEA-CCNL/Taiyi-Stable-Diffusion-1B-Anime-Chinese-v0.1").to("cuda")
|
95 |
-
|
96 |
-
prompt = '1个女孩,绿色头发,毛衣,看向阅图者,上半身,帽子,户外,下雪,高领毛衣'
|
97 |
-
image = pipe(prompt, guidance_scale=7.5).images[0]
|
98 |
-
image.save("1个女孩.png")
|
99 |
-
```
|
100 |
-
|
101 |
### 半精度 Half precision FP16 (CUDA)
|
102 |
|
103 |
添加 `torch_dtype=torch.float16` 和 `device_map="auto"` 可以快速加载 FP16 的权重,以加快推理速度。
|
|
|
86 |
|
87 |
https://github.com/IDEA-CCNL/stable-diffusion-webui/blob/master/README.md
|
88 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
### 半精度 Half precision FP16 (CUDA)
|
90 |
|
91 |
添加 `torch_dtype=torch.float16` 和 `device_map="auto"` 可以快速加载 FP16 的权重,以加快推理速度。
|