Compare commits

..

1 Commits
1.0.6 ... 1.0.4

Author SHA1 Message Date
Phil Wang
9008531d62 fix repaint 2022-07-24 15:22:59 -07:00
3 changed files with 3 additions and 3 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

@@ -300,7 +300,7 @@ class DiffusionPriorTrainer(nn.Module):
# all processes need to load checkpoint. no restriction here
if isinstance(path_or_state, str):
path = Path(path_or_state)
path = Path(path)
assert path.exists()
loaded_obj = torch.load(str(path), map_location=self.device)

View File

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