Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -115,7 +115,7 @@ def process(input_image,
|
|
115 |
init_image = Image.fromarray(masked_image.astype(np.uint8)).convert("RGB")
|
116 |
mask_image = Image.fromarray(original_mask.astype(np.uint8)).convert("RGB")
|
117 |
|
118 |
-
generator = torch.Generator(
|
119 |
|
120 |
image = pipe(
|
121 |
[prompt]*2,
|
|
|
115 |
init_image = Image.fromarray(masked_image.astype(np.uint8)).convert("RGB")
|
116 |
mask_image = Image.fromarray(original_mask.astype(np.uint8)).convert("RGB")
|
117 |
|
118 |
+
generator = torch.Generator().manual_seed(random.randint(0,2147483647) if randomize_seed else seed)
|
119 |
|
120 |
image = pipe(
|
121 |
[prompt]*2,
|