Spaces:
Runtime error
Runtime error
Update model.py
Browse files
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.
|
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.
|