Views
No views yet

[!note] Qwen-Image-HeadshotX is a super-realistic headshot adapter for Qwen-Image, an image generation model by Qwen. It is an advanced LoRA adaptation of the Qwen-Image model and an upgraded version of Qwen-Image-Studio-Realism, offering more precise portrait rendering with a strong focus on realism. The model was trained on diverse face types from across the world, labeled with florence2-en and caption-optimized using DeepCaption-VLA-7B. Total Images Used for Training: 55 RAW images [11(types) × 5 different face types: Asian, Hispanic, Caucasian, Latina, Middle Eastern, etc.].
| Parameter | Value | Parameter | Value |
|---|---|---|---|
| LR Scheduler | constant | Noise Offset | 0.03 |
| Optimizer | AdamW | Multires Noise Discount | 0.1 |
| Network Dim | 64 | Multires Noise Iterations | 10 |
| Network Alpha | 32 | Repeat & Steps | 25 & 4000 |
| Epoch | 30 | Save Every N Epochs | 1 |
Labeling: florence2-en(natural language & English) + 🔥 Optimized with Long-Caption VLA Multimodal : https://huggingface.co/prithivMLmods/DeepCaption-VLA-7B
Total Images Used for Training: 55 RAW [11(types)×5 different face types (Asian, Hispanic, Caucasian, Latina, Middle Eastern, etc.)]| Source | Link |
|---|---|
| Playground | playground.com |
| ArtStation | artstation.com |
| 4K Wallpapers | 4kwallpapers.com |
| Dimensions | Aspect Ratio | Recommendation |
|---|---|---|
| 1472 x 1140 | 4:3 (approx.) | Best |
| 1024 x 1024 | 1:1 | Default |
100 Seconds Inference)1import torch
2from diffusers import DiffusionPipeline
3
4base_model = "Qwen/Qwen-Image"
5pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=torch.bfloat16)
6
7lora_repo = "prithivMLmods/Qwen-Image-HeadshotX"
8trigger_word = "face headshot"
9pipe.load_lora_weights(lora_repo)
10
11device = torch.device("cuda")
12pipe.to(device)face headshot to trigger the image generation.