Text-to-Image
Diffusers
diffusers-training
lora
template:sd-lora
stable-diffusion-xl
stable-diffusion-xl-diffusers
Instructions to use yangchen123321/lora-trained-xl-dx_dg with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use yangchen123321/lora-trained-xl-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-xl-base-1.0", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("yangchen123321/lora-trained-xl-dx_dg") prompt = "A close-up view of a high-voltage power line in a mountainous area, showing a twisted, damaged wire with visible fraying and broken strands. The wire is hanging loosely, with some individual strands of steel wire hanging from the main cable. The surrounding environment is lush with green trees, and in the background, distant wind turbines are visible on the hills. The image has a natural daylight effect, and the wire shows signs of wear and tear due to long-term exposure..\n" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Ctrl+K