How to use KappaNeuro/clay-animation with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("KappaNeuro/clay-animation") prompt = "Clay Animation - Claytopia is a testament to the beauty and power of artistry. It is a world where clay comes alive, where creativity thrives, and where the transformative nature of sculpting gives birth to a realm of enchantment. In this animated tale, Claytopia invites viewers to embark on a journey that celebrates the magic of clay, inspiring imagination and reminding us of the wonders that can be shaped from humble materials." image = pipe(prompt).images[0]