mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 01:04:32 +02:00
fix upscale api
This commit is contained in:
@@ -41,7 +41,7 @@ class ScriptPostprocessingUpscale(scripts_postprocessing.ScriptPostprocessing):
|
||||
}
|
||||
|
||||
def postprocess(self, images, filename, video_type, duration, loop, pad, interpolate, scale, change): # pylint: disable=arguments-differ
|
||||
filename = filename.strip()
|
||||
filename = filename.strip() if filename is not None else ''
|
||||
if video_type == 'None' or len(filename) == 0 or images is None or len(images) < 2:
|
||||
return
|
||||
modules.images.save_video(p=None, filename=filename, images=images, video_type=video_type, duration=duration, loop=loop, pad=pad, interpolate=interpolate, scale=scale, change=change)
|
||||
|
||||
Reference in New Issue
Block a user