Instructions to use wesjos/Qwen-Image2.1-Genshin-2D-Lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use wesjos/Qwen-Image2.1-Genshin-2D-Lora 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-2.1", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("wesjos/Qwen-Image2.1-Genshin-2D-Lora") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Genshin TCG 2D Style LoRA β Qwen-Image-2.1
Style LoRA for
Qwen-Image-2.1. Works in both text-to-image and image-editing (img2img / image edit) mode. trained on comfyui's qwen_image_2.1_int8_convrot.safetensors, pls use this as based model Trigger word:genshintcg_style
π¨ Gallery β text-to-image (t2i)
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
All six samples are native generations (no upscaling, no inpainting) at genshintcg_style strength 0.8 β 1β3 at 832Γ1248, 4β6 at 944Γ1104.
π¨ Gallery β image editing (edit / img2img)
prompt: Reapply this image using the genshintcg_style.
1 Β· Photoreal β 2D character art (strongest example)
2 Β· Anime illustration β vivid cel-shaded version
3 Β· Anime illustration β high-contrast version
π Model Details
| Property | Value |
|---|---|
| Base model | Qwen-Image-2.1 (qwen_image_2) |
| Type | Style LoRA β Genshin-style 2D character art |
| Trigger word | genshintcg_style |
| Modes | text-to-image and image editing (img2img) |
| Rank | 32 |
| Tensors | 384 (192 pairs of lora_A / lora_B) |
| Target modules | Per layer: attn.to_q Β· to_k Β· to_v Β· to_out.0 Β· img_mlp.gate_up Β· img_mlp.out |
| Blocks covered | All 32 layers transformer_blocks.0β31 |
| Dtype | F16 |
| Alpha | Not written β loaders treat as alpha = rank = 32 (scale 1.0) |
| Training framework | ai-toolkit v0.13.21 Β· flowmatch |
| Key format | ComfyUI-style diffusion_model.* prefixes (ai-toolkit save format) |
| Size per file | 152 MiB each |
π¦ Checkpoint Guide
| File | Step / Epoch | Size | Recommendation |
|---|---|---|---|
genshintcg_style_st3000.safetensors |
3000 / 27 | 152 MiB | β Safe, most restrained colouring |
genshintcg_style_st3500.safetensors |
3500 / 31 | 152 MiB | β Recommended default β best balance of linework and palette |
genshintcg_style_st4000.safetensors |
4000 / 36 | 152 MiB | β Strongest saturation, most stylised |
The three checkpoints ship here; no weight is excluded from the guide.
π Usage
Text-to-image
genshintcg_style, a girl with long purple hair sitting on the floor, white t-shirt, blue shorts, plain white background
Image editing (img2img)
The prompt for edit mode is the edit instruction, not a scene description β the input image already carries the content.
genshintcg_style, 2d character art style
Feeding a full scene description in edit mode competes with the input image and pushes the result toward a new composition. Keep the prompt short.
LoRA strength
| Scale | Effect |
|---|---|
| 0.6 β 0.7 | Mild stylisation; retains more of the input's original rendering |
| 0.8 | Sweet spot used for the gallery above β linework and palette clearly present without flattening detail |
| 0.9 β 1.0 | Heavier stylisation; small facial features and fabric patterns start to compress |
ComfyUI
Base model files (diffusion_models + text_encoder + vae):
| Slot | File |
|---|---|
| diffusion model | qwen_image_2.1_int8_convrot.safetensors |
| text encoder | qwen3vl_8b_int8_convrot.safetensors |
| VAE | qwen_image_2.1_vae_bf16.safetensors |
KSampler parameters (measured from this repo's example images):
| Parameter | Value |
|---|---|
| Steps | 30 |
| CFG | 5.0 |
| Sampler | euler |
| Scheduler | simple |
| Shift (ModelSamplingAuraFlow) | 3.0 |
| Size | 832 Γ 1248 (t2i gallery) / follows input for edit |
Negative prompt
deformed, wrong hands, mutated, fused fingers, extra hand, extra feet, ugly underwear
β οΈ Limitations
- Trained mainly on single-character shots. The gallery is portraits and half-body; multi-character scenes and complex full-body compositions generalize less reliably.
- Photoreal inputs in edit mode lose photographic texture by design β skin pores, lens effects and fabric weave are replaced by painted shading. Subject, pose and framing survive; photorealism does not.
- Composition drift rises with edit denoise. Above roughly 0.85 denoise the output starts re-arranging the subject rather than restyling it.
- Above ~1.0 strength the style over-compresses eyes, hands and layered clothing; drop the strength instead of pushing it.
- Generated content is not official Genshin lore. Costume and character details may not match the source material β defer to official assets for anything canon-critical.
- 8-bit lines need real resolution. Inputs below ~512 px on the short side produce soft, muddy output.
π License
Apache-2.0, matching the Qwen-Image-2.1 base model.
- Downloads last month
- 430
Model tree for wesjos/Qwen-Image2.1-Genshin-2D-Lora
Base model
Qwen/Qwen-Image-2.1







