Compare commits

..

1 Commits
1.0.5 ... 1.0.4

Author SHA1 Message Date
Phil Wang
9008531d62 fix repaint 2022-07-24 15:22:59 -07:00
2 changed files with 2 additions and 2 deletions

View File

@@ -2589,7 +2589,7 @@ class Decoder(nn.Module):
if is_inpaint and not (is_last_timestep or is_last_resample_step):
# in repaint, you renoise and resample up to 10 times every step
time_next_cond = torch.full((batch,), time_next, device = device, dtype = torch.long)
img = noise_scheduler.q_sample_from_to(img, time_next_cond, time_cond)
img = noise_scheduler.q_sample_from_to(img, time_cond, time_next_cond)
if exists(inpaint_image):
img = (img * ~inpaint_mask) + (inpaint_image * inpaint_mask)

View File

@@ -1 +1 @@
__version__ = '1.0.5'
__version__ = '1.0.4'