mirror of
https://github.com/vladmandic/automatic
synced 2026-09-20 01:31:13 +02:00
del audio after processing
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -684,6 +684,8 @@ def run_ltx(task_id,
|
||||
else:
|
||||
w, h = p.width, p.height
|
||||
del pixels
|
||||
if audio is not None:
|
||||
del audio
|
||||
|
||||
resolution = f'{w}x{h}' if num_frames > 0 else None
|
||||
summary = timer.process.summary(min_time=0.25, total=False).replace('=', ' ')
|
||||
|
||||
@@ -174,6 +174,8 @@ def generate(task_id, _ui_state,
|
||||
)
|
||||
_n, _c, _t, h, w = pixels.shape
|
||||
del pixels
|
||||
if audio is not None:
|
||||
del audio
|
||||
|
||||
t1 = time.time()
|
||||
progress.finish_task(task_id)
|
||||
|
||||
Reference in New Issue
Block a user