test flag also test linked previews

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2026-07-31 14:55:52 +02:00
parent b96456bb2c
commit 81ea0a835a
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -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",
+1 -1
View File
@@ -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
+2
View File
@@ -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'))