Duplicated from strangerzonehf/Flux-Claymation-XC-LoRA
How to use un-43/Claymation with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("un-43/Claymation") prompt = "Claymation, Captured from a high-angle perspective on a vibrant yellow backdrop, a medium-sized cartoon monkey is posed in front of the viewer. The monkey is adorned with a brown head, a brown vest, and brown pants. Its arms are draped over its chest, adding a touch of balance to the scene. A yellow bottle with a yellow label, adorned with the word \"MONKEY\" is positioned to the left of the monkey, positioned in a way that creates a stark contrast to the monkeys body. The bottles cap, a yellowish-orange color, adds a pop of color to the composition. Three bananas are arranged to the bottom right corner of the frame." image = pipe(prompt).images[0]