Add exponential scheduler and remove print statement

This commit is contained in:
ssit
2023-06-30 16:50:26 -04:00
parent 7e8188be68
commit 2788fea78d
2 changed files with 3 additions and 2 deletions
+3 -1
View File
@@ -11,10 +11,12 @@ def get_supported_samplers():
samplers.remove("uni_pc_bh2")
return samplers
def get_supported_restart_schedulers():
schedulers = ["karras"]
schedulers = ["karras", "exponential"]
return schedulers
class KRestartSampler:
@classmethod
def INPUT_TYPES(s):
-1
View File
@@ -71,7 +71,6 @@ def restart_sampling(model, seed, steps, cfg, sampler_name, scheduler, positive,
for _ in range(k):
x += torch.randn_like(x) * (s_max ** 2 - s_min ** 2) ** 0.5
for i in range(n_restart - 1):
print([seg_sigmas[i], seg_sigmas[i + 1]])
x = sampler(model, x, torch.tensor(
[seg_sigmas[i], seg_sigmas[i + 1]], device=x.device), extra_args, callback, True)
pbar.update(1)