update unipc

This commit is contained in:
Vladimir Mandic
2023-03-13 13:10:44 -04:00
parent f2e9991de5
commit 08f170f87a
10 changed files with 15 additions and 14 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
import torch
import torch.nn.functional as F
import math
from tqdm.auto import trange
class NoiseScheduleVP:
@@ -766,7 +767,7 @@ class UniPC:
self.after_update(x, model_x)
model_prev_list.append(model_x)
t_prev_list.append(vec_t)
for step in range(order, steps + 1):
for step in trange(order, steps + 1):
vec_t = timesteps[step].expand(x.shape[0])
if lower_order_final:
step_order = min(order, steps + 1 - step)