From bfe7b5e1c705348ae4fe79b22296ecd7ddee1e96 Mon Sep 17 00:00:00 2001 From: Will Miao Date: Sun, 31 May 2026 17:12:09 +0800 Subject: [PATCH] fix(constants): add missing diffusion model base models (Flux, DiT, video, etc.) --- py/utils/constants.py | 38 ++++++++++++++++++++++++++++++++++---- 1 file changed, 34 insertions(+), 4 deletions(-) diff --git a/py/utils/constants.py b/py/utils/constants.py index 1121ad91..99f08965 100644 --- a/py/utils/constants.py +++ b/py/utils/constants.py @@ -101,8 +101,34 @@ DEFAULT_PRIORITY_TAG_CONFIG = { DIFFUSION_MODEL_BASE_MODELS = frozenset( [ "Anima", - "ZImageTurbo", - "ZImageBase", + # Flux series — DiT architecture, loaded via UNETLoader in ComfyUI + "Flux.1 D", + "Flux.1 S", + "Flux.1 Krea", + "Flux.1 Kontext", + "Flux.2 D", + "Flux.2 Klein 9B", + "Flux.2 Klein 9B-base", + "Flux.2 Klein 4B", + "Flux.2 Klein 4B-base", + # Non-UNet / DiT image diffusion models + "AuraFlow", + "Chroma", + "HiDream", + "Hunyuan 1", + "Kolors", + "Lumina", + "PixArt a", + "PixArt E", + # Video diffusion models + "CogVideoX", + "Hunyuan Video", + "LTXV", + "LTXV2", + "LTXV 2.3", + "Mochi", + "SVD", + "Wan Video", "Wan Video 1.3B t2v", "Wan Video 14B t2v", "Wan Video 14B i2v 480p", @@ -112,9 +138,13 @@ DIFFUSION_MODEL_BASE_MODELS = frozenset( "Wan Video 2.2 T2V-A14B", "Wan Video 2.5 T2V", "Wan Video 2.5 I2V", - "CogVideoX", - "Mochi", + # Other diffusion models + "Ernie", + "Ernie Turbo", + "Nucleus", "Qwen", + "ZImageBase", + "ZImageTurbo", ] )