How to use yangchen123321/lora-trained-sd3-dx_dg with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-3-medium-diffusers", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("yangchen123321/lora-trained-sd3-dx_dg") prompt = "Close-up of a high-voltage transmission line with steel-reinforced aluminum conductor over mountainous or forested terrain. The conductor shows a broken-strand defect: multiple aluminum strands fractured, loosened, and protruding, appearing frayed with exposed metallic ends, contrasting with intact twisted strands. Realistic industrial inspection photo, high resolution, sharp focus." image = pipe(prompt).images[0]
The community tab is the place to discuss and collaborate with the HF community!