Commit
·
a468943
1
Parent(s):
d137a1e
Update README.md
Browse files
README.md
CHANGED
|
@@ -28,7 +28,7 @@ tags:
|
|
| 28 |
from ppdiffusers import StableDiffusionPipeline
|
| 29 |
|
| 30 |
# 加载模型
|
| 31 |
-
model_path = "
|
| 32 |
pipe = StableDiffusionPipeline.from_pretrained(model_path)
|
| 33 |
|
| 34 |
# 提示词,生成一个带猫耳,绿色头发的诺艾尔
|
|
@@ -37,7 +37,7 @@ prompt = "Noelle with cat ears, green hair"
|
|
| 37 |
# 生成
|
| 38 |
image = pipe(prompt, num_inference_steps=50,guidance_scale=10).images[0]
|
| 39 |
# 保存
|
| 40 |
-
image.save("
|
| 41 |
# 展示图片
|
| 42 |
image.show()
|
| 43 |
```
|
|
|
|
| 28 |
from ppdiffusers import StableDiffusionPipeline
|
| 29 |
|
| 30 |
# 加载模型
|
| 31 |
+
model_path = "Neolle_Face_Generator"
|
| 32 |
pipe = StableDiffusionPipeline.from_pretrained(model_path)
|
| 33 |
|
| 34 |
# 提示词,生成一个带猫耳,绿色头发的诺艾尔
|
|
|
|
| 37 |
# 生成
|
| 38 |
image = pipe(prompt, num_inference_steps=50,guidance_scale=10).images[0]
|
| 39 |
# 保存
|
| 40 |
+
image.save("test.jpg")
|
| 41 |
# 展示图片
|
| 42 |
image.show()
|
| 43 |
```
|