How to use patrickvonplaten/textual_inversion_cat_2 with Diffusers:
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]
These are textual inversion adaption weights for hf-internal-testing/tiny-stable-diffusion-pipe. You can find some example images in the following.
Base model