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