cleanup/refactor state history

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2025-09-12 16:12:43 -04:00
parent a8b850adf4
commit 175e9cbe29
41 changed files with 172 additions and 171 deletions
-2
View File
@@ -184,7 +184,6 @@ class Script(scripts_manager.Script):
# auto-executed by the script-callback
def run(self, p: processing.StableDiffusionProcessing, model, sampler, frames, guidance, offload, override, video_type, duration, loop, pad, interpolate, image, video): # pylint: disable=arguments-differ, unused-argument
shared.state.begin('CogVideoX')
processing.fix_seed(p)
p.extra_generation_params['CogVideoX'] = model
p.do_not_save_grid = True
@@ -206,7 +205,6 @@ class Script(scripts_manager.Script):
frames = self.generate(p, model)
devices.torch_gc()
processed = processing.get_processed(p, images_list=frames)
shared.state.end()
return processed
# auto-executed by the script-callback