mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
cleanup/refactor state history
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user