delay init of video models

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2026-06-20 10:28:46 +02:00
parent 2b81eadecf
commit 8d71d5206d
5 changed files with 271 additions and 258 deletions
+4 -1
View File
@@ -555,7 +555,10 @@ def validate_pipeline(p: processing.StableDiffusionProcessing):
for family in video_models:
for m in video_models[family]:
if m.repo_cls is not None:
models_cls.append(m.repo_cls.__name__)
if isinstance(m.repo_cls, str):
models_cls.append(m.repo_cls)
else:
models_cls.append(m.repo_cls.__name__)
if m.custom is not None:
models_cls.append(m.custom)
is_video_model = shared.sd_model.__class__.__name__ in models_cls