Downloads · 30 days
4
1% of all-time downloads
Tramac/style-portrait-v1-5
style-portrait-v1-5 is a text-to-image model from Tramac. Use it when you need an image from a text prompt. It is set up for diffusers.
Downloads · 30 days
4
1% of all-time downloads
All-time downloads
541
Public
Parameters
860M
7.2 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors7.2 GB · 100%
From the Hugging Face model README

Style Portrait is a SD-v1.5 based text-to-image generation model. It can generate high-quality 512*832 images of Asia portrait.
This repository contains checkpoints for diffusers and SD-WebUI.
import torch
from diffusers import DiffusionPipeline
model_id = "Tramac/style-portrait-v1-5"
pipeline = DiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
pipeline = pipeline.to("cuda")
prompt = "1girl, long hair, close-up, elegant, upper body, natural skin texture, highly detailed"
negative_prompt = "cloned face, ugly, out of frame, mutated, extra arms, cross-eye, blurry, bad art, bad anatomy, badhands, watermark, text, long neck, worst quality, low quality"
image = pipeline(
prompt=prompt,
negative_prompt=negative_prompt,
height=832,
width=512,
).images[0]
image.save("demo.png")