How to use from the
Use from the
Diffusers library
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline

# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("hf-internal-testing/tiny-stable-diffusion-pipe", dtype=torch.bfloat16, device_map="cuda")
pipe.load_lora_weights("patrickvonplaten/textual_inversion_cat_2")

prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]

Textual inversion text2image fine-tuning - patrickvonplaten/textual_inversion_cat_2

These are textual inversion adaption weights for hf-internal-testing/tiny-stable-diffusion-pipe. You can find some example images in the following.

img_0 img_1 img_2 img_3

Downloads last month
73
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for patrickvonplaten/textual_inversion_cat_2

Adapter
(1)
this model

Spaces using patrickvonplaten/textual_inversion_cat_2 2