ironjr commited on
Commit
018cf1b
1 Parent(s): 4a199b1

Update model.py

Browse files
Files changed (1) hide show
  1. model.py +1 -1
model.py CHANGED
@@ -925,7 +925,7 @@ class StreamMultiDiffusion(nn.Module):
925
  )
926
  strength = torch.as_tensor([self.default_mask_strength], dtype=self.dtype, device=self.device)
927
  std = torch.as_tensor([self.default_mask_std], dtype=self.dtype, device=self.device)
928
- original_mask = torch.zeros((1, 1, self.latent_height, self.latent_width), dtype=self.dtype, device=self.device)
929
 
930
  elif mask_std is not None or mask_strength is not None:
931
  # No given mask & edit mode & given std / str -> replace existing mask with given std / str.
 
925
  )
926
  strength = torch.as_tensor([self.default_mask_strength], dtype=self.dtype, device=self.device)
927
  std = torch.as_tensor([self.default_mask_std], dtype=self.dtype, device=self.device)
928
+ original_mask = torch.zeros((1, 1, self.height, self.width), dtype=self.dtype, device=self.device)
929
 
930
  elif mask_std is not None or mask_strength is not None:
931
  # No given mask & edit mode & given std / str -> replace existing mask with given std / str.