Skip to content

Commit c4c80bb

Browse files
committed
OOM
Signed-off-by: Can-Zhao <[email protected]>
1 parent 4c8efcf commit c4c80bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generation/maisi/scripts/sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ def ldm_conditional_sample_one_image(
332332
latents, _ = noise_scheduler.step(model_output, t, latents, next_t) # type: ignore
333333
end_time = time.time()
334334
logging.info(f"---- DM/ControlNet Latent features generation time: {end_time - start_time} seconds ----")
335-
del model_output, controlnet_cond_vis
335+
del model_output, controlnet_cond_vis, down_block_res_samples, mid_block_res_sample
336336
torch.cuda.empty_cache()
337337

338338
# decode latents to synthesized images

0 commit comments

Comments
 (0)