huanngzh commited on
Commit
3a618ed
·
1 Parent(s): 58bc4de
Files changed (1) hide show
  1. app.py +2 -2
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(