This commit is contained in:
huchenlei 2024-12-20 09:48:57 -08:00
parent b356655340
commit 678ac2ffc9

View File

@ -2,6 +2,7 @@
import torch
import math
import logging
from tqdm.auto import trange
@ -474,7 +475,7 @@ class UniPC:
return self.multistep_uni_pc_vary_update(x, model_prev_list, t_prev_list, t, order, **kwargs)
def multistep_uni_pc_vary_update(self, x, model_prev_list, t_prev_list, t, order, use_corrector=True):
print(f'using unified predictor-corrector with order {order} (solver type: vary coeff)') # noqa: T201
logging.info(f'using unified predictor-corrector with order {order} (solver type: vary coeff)')
ns = self.noise_schedule
assert order <= len(model_prev_list)