Diffusers How to use Seanwang1221/ChenDuling_FLUX 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("Seanwang1221/ChenDuling_FLUX")
prompt = "CDL, In a photograph, the camera is angled slightly from below, capturing a close-up of a radiant woman with cascading brown hair that falls gracefully over her shoulders. Her eyes sparkle with warmth as they lock onto the viewer's gaze, framed by long lashes and beautifully defined eyebrows. She wears a stylish, well-fitted sweater in a deep shade of royal red, paired with distressed blue jeans that hug her figure perfectly. A delicate silver ring adorns her left hand, catching the light as she flashes a brilliant smile that reveals a hint of dimples. Her teeth are pearly white and perfectly aligned, adding to her captivating appearance. The background is a blurred scene of vibrant fall foliage, with warm orange, yellow, and red leaves scattered across the ground, casting a soft, golden glow on her face. The overall tone of the image is one of warmth, beauty, and strength, encapsulating the essence of autumn in a single, striking moment."
image = pipe(prompt).images[0]