Downloads · 30 days
53
5% of all-time downloads
phil329/face_lora_sd15
face_lora_sd15 is a text-to-image model from phil329. Use it when you need an image from a text prompt. It is set up for diffusers. The card lists the license as mit.
Downloads · 30 days
53
5% of all-time downloads
All-time downloads
1K
Public
Repo size
32.4 MB
Likes
2
Public
Click a slice to open those files.
.jsonl23.3 MB · 59%
From the Hugging Face model README
This model is a fine-tuned version of the Stable Diffusion architecture, leveraging the Low-Rank Adaptation (LoRA) technique. It has been trained using the CelebA-HQ and FFHQ datasets, both renowned for their high-quality images of human faces.
import torch
from diffusers import StableDiffusionPipeline,UNet2DConditionModel
pipeline = StableDiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5").to("cuda")
pipeline.load_lora_weights("phil329/face_lora_sd15", weight_name="pytorch_lora_weights.safetensors")
NEGATIVE_PROMPT = "worst quality, low quality, bad anatomy, watermark, text, blurry, cartoon, unreal"
text = 'A young woman with smile, wearing a purple hat.'
lora_image = pipeline(text,negative_prompt=NEGATIVE_PROMPT).images[0]
display(lora_image)
We use four prompts as follows:
The negative prompt are the same as the example codes. All the results are randomly generated and not cherry-picked.
If the generation effect is not good, try adding a negative prompt, or try different prompts and seeds.

Weights for this model are available in Safetensors format.
Download them in the Files & versions tab.