pookiefoof commited on
Commit
535986b
1 Parent(s): 711fa4c

Do not skip SAM.

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -63,7 +63,8 @@ This model is trained on Objaverse-LVIS (**~45K** synthetic objects) only. And n
63
 
64
  def preprocess(image_path, preprocess, save_path=None, lower_contrast=False):
65
  if not preprocess:
66
- return image_path
 
67
 
68
  input_raw = Image.open(image_path)
69
 
@@ -128,7 +129,7 @@ def launch(port):
128
 
129
  with gr.Row(variant='panel'):
130
  with gr.Column(scale=1):
131
- input_image = gr.Image(value=None, image_mode="RGBA", width=512, height=512, type="filepath", label="Input Image")
132
  gr.Markdown(
133
  """
134
  **Camera distance** denotes the distance between camera center and scene center.
 
63
 
64
  def preprocess(image_path, preprocess, save_path=None, lower_contrast=False):
65
  if not preprocess:
66
+ print("No preprocess")
67
+ # return image_path
68
 
69
  input_raw = Image.open(image_path)
70
 
 
129
 
130
  with gr.Row(variant='panel'):
131
  with gr.Column(scale=1):
132
+ input_image = gr.Image(value=None, image_mode="RGB", width=512, height=512, type="filepath", label="Input Image")
133
  gr.Markdown(
134
  """
135
  **Camera distance** denotes the distance between camera center and scene center.