Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -159,7 +159,7 @@ def split_rgb_mask(rgb_image, seg_image):
|
|
| 159 |
return instance_rgbs, instance_masks, scene_rgbs
|
| 160 |
|
| 161 |
|
| 162 |
-
|
| 163 |
@torch.no_grad()
|
| 164 |
@torch.autocast(device_type=DEVICE, dtype=torch.bfloat16)
|
| 165 |
def run_segmentation(image_prompts: Any, polygon_refinement: bool) -> Image.Image:
|
|
|
|
| 159 |
return instance_rgbs, instance_masks, scene_rgbs
|
| 160 |
|
| 161 |
|
| 162 |
+
@spaces.GPU()
|
| 163 |
@torch.no_grad()
|
| 164 |
@torch.autocast(device_type=DEVICE, dtype=torch.bfloat16)
|
| 165 |
def run_segmentation(image_prompts: Any, polygon_refinement: bool) -> Image.Image:
|