niulx commited on
Commit
ed7479e
1 Parent(s): 6293e52

Update segment.py

Browse files
Files changed (1) hide show
  1. segment.py +2 -2
segment.py CHANGED
@@ -13,7 +13,7 @@ import argparse
13
  import matplotlib
14
  import gradio as gr
15
 
16
- @spaces.GPU(duration=10)
17
  def load_image(image_path, left=0, right=0, top=0, bottom=0, size = 512):
18
  if type(image_path) is str:
19
  image = np.array(Image.open(image_path))[:, :, :3]
@@ -99,7 +99,7 @@ def draw_panoptic_segmentation(segmentation, segments_info,save_folder=None, nos
99
 
100
 
101
 
102
-
103
  def run_segmentation(image, name="example_tmp", size = 512, noseg=False):
104
 
105
  base_folder_path = "."
 
13
  import matplotlib
14
  import gradio as gr
15
 
16
+
17
  def load_image(image_path, left=0, right=0, top=0, bottom=0, size = 512):
18
  if type(image_path) is str:
19
  image = np.array(Image.open(image_path))[:, :, :3]
 
99
 
100
 
101
 
102
+ @spaces.GPU(duration=10)
103
  def run_segmentation(image, name="example_tmp", size = 512, noseg=False):
104
 
105
  base_folder_path = "."