mirror of
https://github.com/vladmandic/automatic
synced 2026-09-08 13:58:43 +02:00
cleanup reference models
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -458,7 +458,8 @@ def validate_pipeline(p: processing.StableDiffusionProcessing):
|
||||
if m.repo_cls is not None:
|
||||
models_cls.append(m.repo_cls.__name__)
|
||||
is_video_model = shared.sd_model.__class__.__name__ in models_cls
|
||||
is_video_pipeline = 'video' in p.__class__.__name__.lower()
|
||||
override_video_pipelines = ['WanPipeline']
|
||||
is_video_pipeline = ('video' in p.__class__.__name__.lower()) or (shared.sd_model.__class__.__name__ in override_video_pipelines)
|
||||
if is_video_model and not is_video_pipeline:
|
||||
shared.log.error(f'Mismatch: type={shared.sd_model_type} cls={shared.sd_model.__class__.__name__} request={p.__class__.__name__} video model with non-video pipeline')
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user