Downloads · 30 days
7
39% of all-time downloads
li-yan/huacaya-alpaca
huacaya-alpaca is a text-to-image model from li-yan. Use it when you need an image from a text prompt. It is set up for diffusers. The card lists the license as creativeml-openrail-m.
This is a Stable Diffusion model fine-tuned on the huacaya concept with DreamBooth. It can be used by modifying the instanceprompt: a photo of huacaya alpaca on Golden Gate Bridge
Downloads · 30 days
7
39% of all-time downloads
All-time downloads
18
Public
Parameters
860M
5.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors5.5 GB · 100%
From the Hugging Face model README
This is a Stable Diffusion model fine-tuned on the huacaya concept with DreamBooth. It can be used by modifying the instance_prompt: a photo of huacaya alpaca on Golden Gate Bridge
This model was created as part of the DreamBooth Hackathon 🔥. Visit the organisation page for instructions on how to take part!
This is a Stable Diffusion model fine-tuned on alpaca images for the animal theme.
%pip install -qqU diffusers accelerate
import torch
from diffusers import StableDiffusionPipeline
# Set device
device = (
"mps"
if torch.backends.mps.is_available()
else "cuda"
if torch.cuda.is_available()
else "cpu"
)
# Load the pipeline
model_id = "li-yan/huacaya-alpaca"
pipe = StableDiffusionPipeline.from_pretrained(model_id).to(device)
# set prompt
prompt = "a photo of huacaya alpaca on the great wall" #@param
# Set up a generator for reproducibility
generator = torch.Generator(device=device).manual_seed(73)
# Run the pipeline, showing some of the available arguments
pipe_output = pipe(
prompt=prompt, # What to generate
negative_prompt="Oversaturated, blurry, low quality", # What NOT to generate
height=480, width=640, # Specify the image size
guidance_scale=12, # How strongly to follow the prompt
num_inference_steps=50, # How many steps to take
generator=generator # Fixed random seed
)
# View the resulting image
pipe_output.images[0]