--- license: creativeml-openrail-m base_model: Linaqruf/anything-v3.0 tags: - stable-diffusion - stable-diffusion-ppdiffusers - ppdiffusers - DreamBooth - text-to-image --- # DreamBooth - Liyulingyue/Neolle_Face_Generator 本仓库的权重是基于 Linaqruf/anything-v3.0 训练而来的,我们采用[DreamBooth](https://dreambooth.github.io/)的技术并使用`a photo of Neolle`文本进行了训练。 用于微调的图片共10张,均为原神角色诺艾尔,batch_size取1,学习率是5e-6,共训练1000步。 ## 一些提示词示例 - Some prompt examples - Noelle with glasses - Noelle with sunglasses - Noelle with dark hair, beautiful eyes - Noelle, 20 years old - Noelle playing basketball - Noelle with cat ears, blue hair ## 生成图片展示 - Generated Images ![](example_imgs/1.jpg) ![](example_imgs/2.jpg) ![](example_imgs/3.jpg) ![](example_imgs/4.jpg) ## 使用方法 - How to use it ``` # 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() ``` ## 更多示例以及一件运行+生成 - More information https://aistudio.baidu.com/aistudio/projectdetail/5912535