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
New discussion
Resources
  • PR & discussions documentation
  • Code of Conduct
  • Hub documentation

Upload freepik__prompt-use-100-face-above-uploaded-photo-cinematic__47942.png

1
#1 opened 4 months ago by
Malasuerte
Company
TOS Privacy About Careers
Website
Models Datasets Spaces Pricing Docs