Diffusers How to use prithivMLmods/Flux-Long-Toon-LoRA 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("prithivMLmods/Flux-Long-Toon-LoRA")
prompt = "Long toons, a close-up of a cartoon characters face is featured in a vibrant red backdrop. The characters head is adorned with a gray hoodie, a red t-shirt, and a pair of pink earbuds. His eyes, a nose, and mustache are adorned with tiny white dots, adding a pop of color to the scene. His hair is a mix of black and gray, while his ears are a darker shade of pink."
image = pipe(prompt).images[0]