Downloads · 30 days
0
Liyulingyue/Neolle_Face_Generator
Neolle_Face_Generator is a text-to-image model from Liyulingyue. Use it when you need an image from a text prompt. The card lists the license as creativeml-openrail-m.
本仓库的权重是基于 Linaqruf/anything-v3.0 训练而来的,我们采用DreamBooth的技术并使用a photo of Neolle文本进行了训练。
Downloads · 30 days
0
Access
Public
Updated Apr 14, 2023
Repo size
5.5 GB
Likes
4
Public
Click a slice to open those files.
.pdparams5.5 GB · 100%
From the Hugging Face model README
本仓库的权重是基于 Linaqruf/anything-v3.0 训练而来的,我们采用DreamBooth的技术并使用a photo of Neolle文本进行了训练。
用于微调的图片共10张,均为原神角色诺艾尔,batch_size取1,学习率是5e-6,共训练1000步。

# In any Jupyter Enviroment
! git lfs install
! git clone https://huggingface.co/Liyulingyue/Neolle_Face_Generator
! pip install -U paddlepaddle paddlenlp ppdiffusers visualdl safetensors --user
from ppdiffusers import StableDiffusionPipeline
# 加载模型
model_path = "Neolle_Face_Generator"
pipe = StableDiffusionPipeline.from_pretrained(model_path)
# 提示词,生成一个带猫耳,绿色头发的诺艾尔
prompt = "Noelle with cat ears, green hair"
# 生成
image = pipe(prompt, num_inference_steps=50,guidance_scale=10).images[0]
# 保存
image.save("test.jpg")
# 展示图片
image.show()