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

a3xrfgb
/
Qwen-2512-portrait

Text-to-Image
Diffusers
English
lora
template:diffusion-lora
Model card Files Files and versions
xet
Community

Instructions to use a3xrfgb/Qwen-2512-portrait with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use a3xrfgb/Qwen-2512-portrait 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-2512", dtype=torch.bfloat16, device_map="cuda")
    pipe.load_lora_weights("a3xrfgb/Qwen-2512-portrait")
    
    prompt = "The image is a high-resolution photograph of a middle-aged woman with a fair complexion and light blue eyes. She has her blonde hair pulled back in a neat, low bun, with a few strands framing her face. Her expression is neutral, with a slight furrow between her eyebrows that adds a hint of seriousness or contemplation. She is wearing a black button-up shirt that has a smooth texture and a classic, modest collar. The background is a stark white, which creates a clean and minimalist look, focusing all attention on the subject. The lighting is soft and even, eliminating shadows and highlighting her facial features and the texture of her skin. The overall mood of the photograph is serious and perhaps introspective, with the woman's expression and the simplicity of the background contributing to this effect. There are no additional objects or distractions in the image, making it a pure portrait."
    image = pipe(prompt).images[0]
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • Draw Things
  • DiffusionBee
Qwen-2512-portrait
2.87 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 6 commits
a3xrfgb's picture
a3xrfgb
Upload 2 files
30fbcae verified 4 months ago
  • images
    Upload 2 files 4 months ago
  • .gitattributes
    1.66 kB
    Upload 2 files 4 months ago
  • README.md
    1.17 kB
    Update README.md 4 months ago