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
tags:
- text-to-image
- lora
- diffusers
- template:diffusion-lora
widget:
- output:
url: images/sample (2).png
text: >-
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.
parameters:
negative_prompt: 低分辨率,低画质,肢体畸形,手指畸形,画面过饱和,蜡像感,人脸无细节,过度光滑,画面具有AI感。构图混乱。文字模糊,扭曲
- output:
url: images/sample (1).png
text: >-
This is a high-resolution photograph featuring a close-up portrait of a
young woman with light blonde hair styled in loose waves. She has fair
skin and striking blue eyes accentuated by thick, dark eyelashes and bold,
red lipstick that stands out against her pale complexion. Her makeup is
minimal yet polished, with a natural blush on her cheeks and a soft,
neutral eyeshadow that complements her eyes. She is wearing a large,
white, wide-brimmed hat that casts a shadow over her forehead and adds a
touch of vintage glamour to the image. The background is a gradient of
soft blue tones, which creates a serene and calming atmosphere. The
lighting is soft and even, highlighting her features without creating
harsh shadows. The texture of her skin appears smooth and flawless, and
her hair looks slightly tousled, adding to the relaxed, summery vibe of
the photograph. The overall composition is balanced, with the hat framing
her face and the soft, gradient background adding depth without
distracting from her striking appearance. The image captures a moment of
elegance and simplicity, exuding a sense of timeless beauty.
parameters:
negative_prompt: 低分辨率,低画质,肢体畸形,手指畸形,画面过饱和,蜡像感,人脸无细节,过度光滑,画面具有AI感。构图混乱。文字模糊,扭曲
- output:
url: images/sample (3).png
text: >-
A head-and-shoulders portrait features a person with light skin, appearing
to be a young adult female. She has brown hair that is medium in length,
styled with soft waves and significant volume, falling around her jawline.
Her facial features include light eyebrows, visible on her forehead, and
her eyes are directed straight toward the viewer. Her expression is
neutral, with a slight, subtle upturn to the corners of her mouth. She is
wearing a black garment that appears to be a blazer or jacket, visible
across her shoulders and chest. Around her neck, she wears a delicate
necklace with a small, dark, pendant that hangs at the base of her throat.
The background is uniformly white, providing no discernible environmental
details. The subject is positioned centrally in the frame. The shot is a
close-up, capturing her head and the upper portion of her torso. The depth
of field is shallow, keeping the subject sharply in focus while the
background remains a flat, featureless white.The lighting appears to be
soft and diffused, coming from the front, illuminating her face evenly and
minimizing harsh shadows. Highlights are visible on her forehead, nose,
and cheekbones. The color palette is dominated by the subject's warm skin
tones, the rich brown of her hair, and the stark black of her clothing,
set against the pure white background. Textures visible include the soft,
wavy texture of her hair, the smooth finish of her skin, and the matte
appearance of the black fabric of her jacket. No other secondary elements
are visible in the frame.
parameters:
negative_prompt: 低分辨率,低画质,肢体畸形,手指畸形,画面过饱和,蜡像感,人脸无细节,过度光滑,画面具有AI感。构图混乱。文字模糊,扭曲
Qwen-2512 portrait Lora
.png)
- 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.
- Negative Prompt
- 低分辨率,低画质,肢体畸形,手指畸形,画面过饱和,蜡像感,人脸无细节,过度光滑,画面具有AI感。构图混乱。文字模糊,扭曲
.png)
- Prompt
- This is a high-resolution photograph featuring a close-up portrait of a young woman with light blonde hair styled in loose waves. She has fair skin and striking blue eyes accentuated by thick, dark eyelashes and bold, red lipstick that stands out against her pale complexion. Her makeup is minimal yet polished, with a natural blush on her cheeks and a soft, neutral eyeshadow that complements her eyes. She is wearing a large, white, wide-brimmed hat that casts a shadow over her forehead and adds a touch of vintage glamour to the image. The background is a gradient of soft blue tones, which creates a serene and calming atmosphere. The lighting is soft and even, highlighting her features without creating harsh shadows. The texture of her skin appears smooth and flawless, and her hair looks slightly tousled, adding to the relaxed, summery vibe of the photograph. The overall composition is balanced, with the hat framing her face and the soft, gradient background adding depth without distracting from her striking appearance. The image captures a moment of elegance and simplicity, exuding a sense of timeless beauty.
- Negative Prompt
- 低分辨率,低画质,肢体畸形,手指畸形,画面过饱和,蜡像感,人脸无细节,过度光滑,画面具有AI感。构图混乱。文字模糊,扭曲
.png)
- Prompt
- A head-and-shoulders portrait features a person with light skin, appearing to be a young adult female. She has brown hair that is medium in length, styled with soft waves and significant volume, falling around her jawline. Her facial features include light eyebrows, visible on her forehead, and her eyes are directed straight toward the viewer. Her expression is neutral, with a slight, subtle upturn to the corners of her mouth. She is wearing a black garment that appears to be a blazer or jacket, visible across her shoulders and chest. Around her neck, she wears a delicate necklace with a small, dark, pendant that hangs at the base of her throat. The background is uniformly white, providing no discernible environmental details. The subject is positioned centrally in the frame. The shot is a close-up, capturing her head and the upper portion of her torso. The depth of field is shallow, keeping the subject sharply in focus while the background remains a flat, featureless white.The lighting appears to be soft and diffused, coming from the front, illuminating her face evenly and minimizing harsh shadows. Highlights are visible on her forehead, nose, and cheekbones. The color palette is dominated by the subject's warm skin tones, the rich brown of her hair, and the stark black of her clothing, set against the pure white background. Textures visible include the soft, wavy texture of her hair, the smooth finish of her skin, and the matte appearance of the black fabric of her jacket. No other secondary elements are visible in the frame.
- Negative Prompt
- 低分辨率,低画质,肢体畸形,手指畸形,画面过饱和,蜡像感,人脸无细节,过度光滑,画面具有AI感。构图混乱。文字模糊,扭曲
Model description
Qwen-2512 Portrait LoRA – High-Fidelity Human Portrait Lora
Description: This LoRA is trained on the Qwen-2512 architecture to enhance high-quality human portrait generation with a strong focus on facial realism, identity consistency, and expressive detail. It specializes in producing clean, well-balanced portraits across diverse lighting conditions, angles, and emotional expressions while preserving natural skin texture and anatomical accuracy.
The model improves upon base Qwen capabilities by refining micro-details such as eye sharpness, skin gradients, hair strand definition, and subtle facial asymmetry, resulting in more lifelike and photorealistic outputs. It performs particularly well in close-up and mid-shot compositions, making it suitable for profile images, editorial-style portraits, and AI influencer generation.
Key Features:
- High facial fidelity and identity preservation
- Natural skin tones with realistic texture (no plastic smoothing)
- Strong eye detail and gaze accuracy
- Consistent lighting response (studio, natural, cinematic)
- Enhanced hair realism and edge separation
- Supports diverse ethnicities and facial structures
Recommended Use Cases:
- AI influencer creation
- Professional headshots
- Social media avatars
- Character design (realistic style)
- Photography-style renders
Limitations:
- Not optimized for full-body compositions
- May require prompt tuning for extreme stylization (anime, abstract)
- Overexposure or extreme lighting prompts can reduce realism.
Comfyui Workflow
https://huggingface.co/a3xrfgb/Qwen-2512-portrait/tree/main/images
