Skip to content

Commit aa85336

Browse files
committed
DefaultQwen21VAE
1 parent f1c2ec2 commit aa85336

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

‎docs/Model Support.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,7 @@ For upscaling with SD3, the `Refiner Do Tiling` parameter is highly recommended
463463
- Main model downloads are here: [Comfy-Org/Qwen-Image-2.1](<https://huggingface.co/Comfy-Org/Qwen-Image-2.1/tree/main/diffusion_models>)
464464
- It has a ch=64 scale=16 RGBA VAE, it will be downloaded automatically
465465
- Note that many models are scale=8, this is scale=16, meaning it has a larger 'snap' in resolution range, and needs to be set to 2048x2048 to generate the equivalent quality of what most models do at 1024x1024
466+
- There is an unofficial 'texture fix' VAE that looks a bit better, download here [madebyollin/texture-fix-vae](<https://huggingface.co/madebyollin/texture-fix-vae-for-qwen-image-2.1/blob/main/texture_fix_vae_for_qwen_image_2.1_bf16.safetensors>). If you prefer it, select it in User Settings -> DefaultQwen21VAE.
466467
- **Parameters:**
467468
- **Prompt**: General VLM prompting
468469
- The preset for transparent images is `This is an RGBA image with transparency. {prompt}. The image has alpha channel and the background is transparent.` this is essentially required for proper transparent backgrounds.

‎src/BuiltinExtensions/ComfyUIBackend/WorkflowGeneratorModelSupport.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1396,7 +1396,7 @@ public void LoadClip3(string type, string modelA, string modelB, string modelC)
13961396
else if (IsQwenImage21())
13971397
{
13981398
helpers.LoadClip("qwen_image", helpers.GetQwenImage21TextEncoder());
1399-
helpers.DoVaeLoader(null, T2IModelClassSorter.CompatQwenImage21, "qwen-image-2.1-vae");
1399+
helpers.DoVaeLoader(UserInput.SourceSession?.User?.Settings?.VAEs?.DefaultQwen21VAE, T2IModelClassSorter.CompatQwenImage21, "qwen-image-2.1-vae");
14001400
}
14011401
else if (IsQwenImage())
14021402
{

‎src/Core/Settings.cs‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,10 @@ public class VAEsData : AutoConfiguration
586586
[ManualSettingsOptions(Impl = null, Vals = ["None"])]
587587
public string DefaultQwenVAE = "None";
588588

589+
[ConfigComment("What VAE to use with Qwen Image 2.1 models by default.")]
590+
[ManualSettingsOptions(Impl = null, Vals = ["None"])]
591+
public string DefaultQwen21VAE = "None";
592+
589593
[ConfigComment("What VAE to use with MiniMax H3 models by default (the video VAE, not audio).")]
590594
[ManualSettingsOptions(Impl = null, Vals = ["None"])]
591595
public string DefaultMiniMaxH3VAE = "None";

0 commit comments

Comments
 (0)