additional minor cleaning

This commit is contained in:
Alex "mcmonkey" Goodwin
2023-10-29 08:14:45 -07:00
parent 83f619ab37
commit 5cce1c8e11
2 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -212,7 +212,7 @@ class CustomCFGDenoiser(cfgdenoisekdiff):
weights = torch.tensor(conds_list, device=uncond.device).select(2, 1)
weights = weights.reshape(*weights.shape, 1, 1, 1)
self.main_class.step = self.step
if self.main_class.experiment_mode >= 4 and self.main_class.experiment_mode <= 5:
# https://arxiv.org/pdf/2305.08891.pdf "Rescale CFG". It's not good, but if you want to test it, just set experiment_mode = 4 + phi.
denoised = torch.clone(denoised_uncond)