Zhengyi commited on
Commit
5133925
1 Parent(s): eb19b94

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -171,7 +171,7 @@ with gr.Blocks() as demo:
171
  background_choice = gr.Radio([
172
  "Alpha as mask",
173
  "Auto Remove background"
174
- ], value="Alpha as mask",
175
  label="backgroud choice")
176
  # do_remove_background = gr.Checkbox(label=, value=True)
177
  # force_remove = gr.Checkbox(label=, value=False)
@@ -192,6 +192,7 @@ with gr.Blocks() as demo:
192
  gr.Examples(
193
  examples=[os.path.join("examples", i) for i in os.listdir("examples")],
194
  inputs=[image_input],
 
195
  )
196
  with gr.Column():
197
  image_output = gr.Image(interactive=False, label="Output RGB image")
@@ -201,7 +202,7 @@ with gr.Blocks() as demo:
201
  label="Output OBJ",
202
  interactive=False,
203
  )
204
- gr.Markdown("Note: Use our official code to support higher resolution texture.")
205
 
206
  inputs = [
207
  processed_image,
 
171
  background_choice = gr.Radio([
172
  "Alpha as mask",
173
  "Auto Remove background"
174
+ ], value="Auto Remove background",
175
  label="backgroud choice")
176
  # do_remove_background = gr.Checkbox(label=, value=True)
177
  # force_remove = gr.Checkbox(label=, value=False)
 
192
  gr.Examples(
193
  examples=[os.path.join("examples", i) for i in os.listdir("examples")],
194
  inputs=[image_input],
195
+ examples_per_page = 20,
196
  )
197
  with gr.Column():
198
  image_output = gr.Image(interactive=False, label="Output RGB image")
 
202
  label="Output OBJ",
203
  interactive=False,
204
  )
205
+ gr.Markdown("Note: (1) Use our official code to support higher resolution texture. (2) Ensure that the image is correctly pre-processed into a grey background, otherwise the results will be unpredictable.")
206
 
207
  inputs = [
208
  processed_image,