From 81ea0a835ae085de9df763663c2b8df5a386f7d7 Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Fri, 31 Jul 2026 14:55:52 +0200 Subject: [PATCH] test flag also test linked previews Signed-off-by: Vladimir Mandic --- data/previews.json | 2 +- data/reference-quantized.json | 2 +- modules/ui_extra_networks.py | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/data/previews.json b/data/previews.json index 30ca5de77..41a9282d3 100644 --- a/data/previews.json +++ b/data/previews.json @@ -30,7 +30,7 @@ "THUDM--CogVideoX-5b": "THUDM--CogView3-Plus-3B.jpg", "vladmandic--Anima-1.0-Base-Merge-sdnq-hadamard-uint4": "vladmandic--Anima-1.0-Base.jpg", "vladmandic--Anima-1.0-Base-sdnq-svd-dynamic-uint4": "vladmandic--Anima-1.0-Base.jpg", - "vladmandic--Anima-1.0-Turbo-sdnq-svd-dynamic-uint4": "vladmandic--Anima-1.0-Turbo.jpg", + "vladmandic--Anima-1.0-Turbo-sdnq-svd-dynamic-uint4": "vladmandic--Anima-1.0-Turbo-sdnq-svd-dynamic-uint4.jpg", "vladmandic--Flux.2-Klein-9B-KV-sdnq-hadamard-uint4": "black-forest-labs--FLUX.2-klein-9b-kv.jpg", "vladmandic--Flux.2-Klein-9B-KV-Merge-sdnq-hadamard-uint4": "black-forest-labs--FLUX.2-klein-9b-kv.jpg", "vladmandic--Krea-2-Base-sdnq-hadamard-uint4": "CalamitousFelicitousness--Krea-2-Base-Diffusers.jpg", diff --git a/data/reference-quantized.json b/data/reference-quantized.json index 92267b09c..132fdfe6e 100644 --- a/data/reference-quantized.json +++ b/data/reference-quantized.json @@ -197,7 +197,7 @@ }, "Anima 1.0 Turbo sdnq-svd-dynamic-uint4": { "path": "vladmandic/Anima-1.0-Turbo-sdnq-svd-dynamic-uint4", - "preview": "vladmandic--Anima-1.0-Turbo.jpg", + "preview": "vladmandic--Anima-1.0-Turbo-sdnq-svd-dynamic-uint4.jpg", "desc": "Anima 1.0 Turbo with extended 1024-resolution training and expanded dataset coverage for less common artists. A 2B parameter anime-focused text-to-image model based on modified Cosmos-Predict-2B with Qwen3-0.6B text encoder, created by CircleStone Labs and Comfy Org.", "date": "2026 May", "size": 2.03 diff --git a/modules/ui_extra_networks.py b/modules/ui_extra_networks.py index b674882c2..0c7ad35a5 100644 --- a/modules/ui_extra_networks.py +++ b/modules/ui_extra_networks.py @@ -466,6 +466,8 @@ class ExtraNetworksPage: if path is None: return 'ui/assets/missing.png' if os.path.join('models', 'Reference') in path: + if shared.cmd_opts.test and not os.path.exists(path): + log.warning(f'Networks: missing-preview type="{self.name}" fn="{path}"') return path exts = ["jpg", "jpeg", "png", "webp", "tiff", "jp2", "jxl"] reference_path = os.path.abspath(os.path.join('models', 'Reference'))