Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2026-09-11 01:05:51 +02:00
parent 5c7e018fb8
commit fd0a332c77
4 changed files with 14 additions and 5 deletions
+9
View File
@@ -281,12 +281,18 @@ def dlss(p: processing.StableDiffusionProcessing | None, pp: processing.Processe
ss_scale_factor = float(getattr(p, 'ss_scale_factor', ss_scale_factor))
fg_source_fps = str(getattr(p, 'fg_source_fps', fg_source_fps))
fg_target_fps = str(getattr(p, 'fg_target_fps', fg_target_fps))
if (p is not None) and ('video' in p.ops): # should not add video frames
nr_append = False
ss_append = False
images = []
originals = []
current_images = inputs
t = timer.Timer()
jobid = shared.state.begin('DLSS')
t_start = time.time()
if ss_enabled:
t0 = time.time()
if p:
@@ -332,6 +338,9 @@ def dlss(p: processing.StableDiffusionProcessing | None, pp: processing.Processe
current_images = output
t.ts('framegen', t0)
shared.state.end(jobid)
timer.process.ts('dlss', t_start)
log.debug(f'DLSS: frames={len(images)} {t.summary(min_time=0)}')
if update == 'images':
pp.images = images