Skip to content

Commit 236fe40

Browse files
authored
Merge pull request #158 from lin-tianyu/master
solve DPM-Solver OOM issue
2 parents 9be4ffe + 8c2d434 commit 236fe40

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

guided_diffusion/gaussian_diffusion.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,7 @@ def p_sample_loop_known(
549549
skip_type="time_uniform",
550550
method="multistep",
551551
)
552+
sample = sample.detach() ### MODIFIED: for DPM-Solver OOM issue
552553
sample[:,-1,:,:] = norm(sample[:,-1,:,:])
553554
final["sample"] = sample
554555
final["cal"] = cal

0 commit comments

Comments
 (0)