Spaces:
Running
on
Zero
Running
on
Zero
update
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 |
-
@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:
|
|
@@ -190,7 +190,7 @@ def run_segmentation(image_prompts: Any, polygon_refinement: bool) -> Image.Imag
|
|
| 190 |
return seg_map_pil
|
| 191 |
|
| 192 |
|
| 193 |
-
@spaces.GPU()
|
| 194 |
@torch.no_grad()
|
| 195 |
@torch.autocast(device_type=DEVICE, dtype=torch.bfloat16)
|
| 196 |
def run_generation(
|
|
|
|
| 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:
|
|
|
|
| 190 |
return seg_map_pil
|
| 191 |
|
| 192 |
|
| 193 |
+
# @spaces.GPU()
|
| 194 |
@torch.no_grad()
|
| 195 |
@torch.autocast(device_type=DEVICE, dtype=torch.bfloat16)
|
| 196 |
def run_generation(
|