Views
No views yet
None to trigger the image generation.1from diffusers import AutoPipelineForText2Image
2import torch
3pipeline = AutoPipelineForText2Image.from_pretrained("black-forest-labs/FLUX.2", torch_dtype=torch.bfloat16).to('cuda')
4pipeline.load_lora_weights('linoyts/Flux2-Klein-Delight-LoRA', weight_name='pytorch_lora_weights.safetensors')
5image = pipeline('Relight the image to remove all existing lighting conditions and replace them with neutral, uniform illumination. Apply soft, evenly distributed lighting with no directional shadows, no harsh highlights, and no dramatic contrast. Maintain the original identity of all subjects exactly—preserve facial structure, skin tone, proportions, expressions, hair, clothing, and textures. Do not alter pose, camera angle, background geometry, or image composition. Lighting should appear balanced, and studio-neutral, similar to diffuse overcast or a soft lightbox setup. Ensure consistent exposure across the entire image with realistic depth and subtle shading only where necessary for form.').images[0]# TODO: add an example code snippet for running this diffusion pipeline