How to use prithivMLmods/Castor-Character-Polygon-Flux-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/Castor-Character-Polygon-Flux-LoRA") prompt = "Create a hyper-realistic 3D polygon character portrait of a woman in her early 30s with short, tousled platinum blonde hair. She has piercing blue eyes, pale skin with subtle freckles, and a sharp jawline. She wears a black leather jacket over a simple white t-shirt, giving off a contemporary, urban vibe. Her expression is confident and slightly rebellious, with a smirk playing on her lips. The lighting is dramatic, casting shadows on one side of her face and highlighting the texture of her skin and the gloss on her lips. The background is a cityscape at night with blurred lights, adding to the modern and edgy atmosphere." image = pipe(prompt).images[0]
The community tab is the place to discuss and collaborate with the HF community!