Commit
·
d137a1e
1
Parent(s):
fa7ce4a
Update README.md
Browse files
README.md
CHANGED
|
@@ -15,7 +15,34 @@ tags:
|
|
| 15 |
|
| 16 |
用于微调的图片共10张,均为原神角色诺艾尔,batch_size取1,学习率是5e-6,共训练1000步。
|
| 17 |
|
| 18 |
-
##
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
- Noelle with glasses
|
| 20 |
- Noelle with sunglasses
|
| 21 |
- Noelle with dark hair, beautiful eyes
|
|
@@ -23,12 +50,12 @@ tags:
|
|
| 23 |
- Noelle playing basketball
|
| 24 |
- Noelle with cat ears, blue hair
|
| 25 |
|
| 26 |
-
## 生成图片展示
|
| 27 |

|
| 28 |

|
| 29 |

|
| 30 |

|
| 31 |
|
| 32 |
-
## 更多示例以及一件运行+生成
|
| 33 |
|
| 34 |
https://aistudio.baidu.com/aistudio/projectdetail/5912535
|
|
|
|
| 15 |
|
| 16 |
用于微调的图片共10张,均为原神角色诺艾尔,batch_size取1,学习率是5e-6,共训练1000步。
|
| 17 |
|
| 18 |
+
## 使用方法 - How to use it
|
| 19 |
+
|
| 20 |
+
```
|
| 21 |
+
# In any Jupyter Enviroment
|
| 22 |
+
! git lfs install
|
| 23 |
+
! git clone https://huggingface.co/Liyulingyue/Neolle_Face_Generator
|
| 24 |
+
|
| 25 |
+
! pip install -U paddlepaddle paddlenlp ppdiffusers visualdl safetensors --user
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
from ppdiffusers import StableDiffusionPipeline
|
| 29 |
+
|
| 30 |
+
# 加载模型
|
| 31 |
+
model_path = "/home/aistudio/Neolle_Face_Generator/dream_outputs"
|
| 32 |
+
pipe = StableDiffusionPipeline.from_pretrained(model_path)
|
| 33 |
+
|
| 34 |
+
# 提示词,生成一个带猫耳,绿色头发的诺艾尔
|
| 35 |
+
prompt = "Noelle with cat ears, green hair"
|
| 36 |
+
|
| 37 |
+
# 生成
|
| 38 |
+
image = pipe(prompt, num_inference_steps=50,guidance_scale=10).images[0]
|
| 39 |
+
# 保存
|
| 40 |
+
image.save("/home/aistudio/test.jpg")
|
| 41 |
+
# 展示图片
|
| 42 |
+
image.show()
|
| 43 |
+
```
|
| 44 |
+
|
| 45 |
+
## 一些提示词示例 - Some prompt examples
|
| 46 |
- Noelle with glasses
|
| 47 |
- Noelle with sunglasses
|
| 48 |
- Noelle with dark hair, beautiful eyes
|
|
|
|
| 50 |
- Noelle playing basketball
|
| 51 |
- Noelle with cat ears, blue hair
|
| 52 |
|
| 53 |
+
## 生成图片展示 - Generated Images
|
| 54 |

|
| 55 |

|
| 56 |

|
| 57 |

|
| 58 |
|
| 59 |
+
## 更多示例以及一件运行+生成 - More information
|
| 60 |
|
| 61 |
https://aistudio.baidu.com/aistudio/projectdetail/5912535
|