ziqima commited on
Commit
11ba0e1
1 Parent(s): 0719205
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -69,8 +69,10 @@ with gr.Blocks(theme=gr.themes.Default(text_size="lg", radius_size="none")) as d
69
  After hitting "Run", the model will segment the object into the provided parts.
70
  For localization mode, please only provide one query string in the "queries" text box. After hitting "Run", the model will generate a heatmap for the provided query text.
71
  Please click on the buttons below "Objaverse" and "In the Wild" for some examples. You can also upload your own .pcd files.</p>
72
- <p style='font-size: 16px;'>Hint: we provide some part names for the examples below.
73
- When working with your own point cloud, feel free to rephrase the query (e.g. "part" vs "part of a object") to achieve better performance!</p>
 
 
74
  '''
75
  )
76
 
@@ -135,9 +137,9 @@ with gr.Blocks(theme=gr.themes.Default(text_size="lg", radius_size="none")) as d
135
  outputs=[file_upload, part_queries])
136
 
137
  file_upload.change(
138
- fn=lambda x:x,#render_pcd_file,
139
  inputs=[file_upload],
140
- outputs=[file_upload]#[input_point_cloud],
141
  )
142
  run_button.click(
143
  fn=predict,
 
69
  After hitting "Run", the model will segment the object into the provided parts.
70
  For localization mode, please only provide one query string in the "queries" text box. After hitting "Run", the model will generate a heatmap for the provided query text.
71
  Please click on the buttons below "Objaverse" and "In the Wild" for some examples. You can also upload your own .pcd files.</p>
72
+ <p style='font-size: 16px;'>Hint:
73
+ When uploading your own point cloud, please first close the existing poinf cloud by clicking on the "x" button.
74
+ <br>
75
+ We show some sample queries for the provideed examples. When working with your own point cloud, feel free to rephrase the query (e.g. "part" vs "part of a object") to achieve better performance!</p>
76
  '''
77
  )
78
 
 
137
  outputs=[file_upload, part_queries])
138
 
139
  file_upload.change(
140
+ fn=render_pcd_file,
141
  inputs=[file_upload],
142
+ outputs=[input_point_cloud],
143
  )
144
  run_button.click(
145
  fn=predict,