Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

yangchen123321
/
lora-trained-xl-dx_sg

Text-to-Image
Diffusers
diffusers-training
lora
template:sd-lora
stable-diffusion-xl
stable-diffusion-xl-diffusers
Model card Files Files and versions
xet
Community

Instructions to use yangchen123321/lora-trained-xl-dx_sg with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use yangchen123321/lora-trained-xl-dx_sg 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-xl-base-1.0", dtype=torch.bfloat16, device_map="cuda")
    pipe.load_lora_weights("yangchen123321/lora-trained-xl-dx_sg")
    
    prompt = "UAV inspection photo of a high-voltage transmission conductor: close-up aluminum stranded cable with slight strand loosening, minor spread and subtle lifting along the helical grooves. Strands remain intact—no broken wires, no missing strands, no fraying. Sharp focus on the defect, natural daylight, realistic metallic texture and reflections, high detail, shallow depth of field, blurred background, photorealistic.\n"
    image = pipe(prompt).images[0]
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • Draw Things
  • DiffusionBee
lora-trained-xl-dx_sg
28.4 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
yangchen123321's picture
yangchen123321
End of training
a448f79 verified 7 months ago
  • .gitattributes
    1.71 kB
    End of training 7 months ago
  • README.md
    4.21 kB
    End of training 7 months ago
  • image_0.png
    1.19 MB
    xet
    End of training 7 months ago
  • image_1.png
    1.26 MB
    xet
    End of training 7 months ago
  • image_2.png
    1.24 MB
    xet
    End of training 7 months ago
  • image_3.png
    1.32 MB
    xet
    End of training 7 months ago
  • pytorch_lora_weights.safetensors
    23.4 MB
    xet
    End of training 7 months ago