Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

Alissonerdx
/
CustomLightning

Text-to-Image
Diffusers
lora
qwen
qwen image
QIE
lightning
lightx2v
Model card Files Files and versions
xet
Community
2

Instructions to use Alissonerdx/CustomLightning with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use Alissonerdx/CustomLightning with Diffusers:

    pip install -U diffusers transformers accelerate
    import torch
    from diffusers import DiffusionPipeline
    
    # switch to "mps" for apple devices
    pipe = DiffusionPipeline.from_pretrained("Qwen/Qwen-Image-Edit-2511", dtype=torch.bfloat16, device_map="cuda")
    pipe.load_lora_weights("Alissonerdx/CustomLightning")
    
    prompt = "head_swap: start with Picture 1 as the base image, keeping its lighting, environment, and background. remove the head from Picture 1 completely and replace it with the head from Picture 2, strictly preserving the hair, eye color, nose structure of Picture 2. copy the direction of the eye, head rotation, micro expressions from Picture 1, high quality, sharp details, 4k"
    image = pipe(prompt).images[0]
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • Draw Things
  • DiffusionBee
CustomLightning
Ctrl+K
Ctrl+K
  • 1 contributor
History: 6 commits
Malasuerte's picture
Malasuerte
Upload freepik__prompt-use-100-face-above-uploaded-photo-cinematic__47942.png
da68408 verified 4 months ago
  • images
    Delete images/ComfyUI_04964_.png 4 months ago
  • .gitattributes
    2.31 kB
    initial commit 4 months ago
  • README.md
    1.17 kB
    Update README.md 4 months ago
  • custom_lightning_4or8steps_rank_4_fp32.safetensors
    171 MB
    xet
    Add 3 files 4 months ago
  • freepik__prompt-use-100-face-above-uploaded-photo-cinematic__47942.png
    1.22 MB
    xet
    Upload freepik__prompt-use-100-face-above-uploaded-photo-cinematic__47942.png 4 months ago