Spaces:
Runtime error
Runtime error
Update model.py
Browse files
model.py
CHANGED
|
@@ -756,6 +756,7 @@ class StreamMultiDiffusion(nn.Module):
|
|
| 756 |
|
| 757 |
if isinstance(masks, Image.Image):
|
| 758 |
masks = [masks]
|
|
|
|
| 759 |
n = len(masks) if masks is not None else 0
|
| 760 |
|
| 761 |
# Modificiation.
|
|
|
|
| 756 |
|
| 757 |
if isinstance(masks, Image.Image):
|
| 758 |
masks = [masks]
|
| 759 |
+
p = self.num_layers
|
| 760 |
n = len(masks) if masks is not None else 0
|
| 761 |
|
| 762 |
# Modificiation.
|