video save frames

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2025-08-02 08:22:32 -04:00
parent 461bed5720
commit 5f384a9de7
5 changed files with 12 additions and 2 deletions
+2
View File
@@ -38,6 +38,8 @@
- refactor legacy processing loop
- fix Wan 2.2-5B I2V workflow
- fix OpenVINO
- fix video model vs pipeline mismatch
- fix video generic save frames
- fix inpaint image metadata
- fix processing image save loop
- fix progress bar with refine/detailer
+1
View File
@@ -108,6 +108,7 @@ def generate(args): # pylint: disable=redefined-outer-name
if args.mask is not None:
options['mask'] = encode(args.mask)
data = post('/sdapi/v1/control', options)
t1 = time.time()
if 'info' in data:
+7 -1
View File
@@ -451,7 +451,13 @@ def update_pipeline(sd_model, p: processing.StableDiffusionProcessing):
def validate_pipeline(p: processing.StableDiffusionProcessing):
is_video_model = ('video' in shared.sd_model_type.lower()) or ('video' in shared.sd_model.__class__.__name__.lower())
from modules.video_models.models_def import models as video_models
models_cls = []
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__)
is_video_model = shared.sd_model.__class__.__name__ in models_cls
is_video_pipeline = 'video' in p.__class__.__name__.lower()
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')
+1
View File
@@ -52,6 +52,7 @@ def generate(*args, **kwargs):
p.state = ui_state
p.do_not_save_grid = True
p.do_not_save_samples = not save_frames
p.outpath_samples = shared.opts.outdir_samples or shared.opts.outdir_video
if 'I2V' in model:
if init_image is None:
return video_utils.queue_err('init image not set')