bluestyle97 commited on
Commit
bd14a5a
β€’
1 Parent(s): 64d9658

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -7
app.py CHANGED
@@ -245,16 +245,22 @@ def make3d(images):
245
 
246
  _HEADER_ = '''
247
  <h2><b>Official πŸ€— Gradio Demo</b></h2><h2><a href='https://github.com/TencentARC/InstantMesh' target='_blank'><b>InstantMesh: Efficient 3D Mesh Generation from a Single Image with Sparse-view Large Reconstruction Models</b></a></h2>
248
- '''
249
 
250
- _LINKS_ = '''
251
- <h3>Important Note: Our demo supports exporting a .obj mesh with vertex colors or a .glb mesh now. If you prefer to export a .obj mesh with a texture map, please refer to our <a href='https://github.com/TencentARC/InstantMesh?tab=readme-ov-file#running-with-command-line' target='_blank'>Github repo</a>.</h3>
252
- <h3>Code is available at <a href='https://github.com/TencentARC/InstantMesh' target='_blank'>GitHub</a></h3>
253
- <h3>Report is available at <a href='https://arxiv.org/abs/2404.07191' target='_blank'>ArXiv</a></h3>
254
- <h3>Feel free to open a discussion if you meet any problem!</h3>
 
 
255
  '''
256
 
257
  _CITE_ = r"""
 
 
 
 
 
258
  ```bibtex
259
  @article{xu2024instantmesh,
260
  title={InstantMesh: Efficient 3D Mesh Generation from a Single Image with Sparse-view Large Reconstruction Models},
@@ -263,6 +269,14 @@ _CITE_ = r"""
263
  year={2024}
264
  }
265
  ```
 
 
 
 
 
 
 
 
266
  """
267
 
268
 
@@ -343,6 +357,7 @@ with gr.Blocks() as demo:
343
  label="Output Model (OBJ Format)",
344
  interactive=False,
345
  )
 
346
  with gr.Tab("GLB"):
347
  output_model_glb = gr.Model3D(
348
  label="Output Model (GLB Format)",
@@ -353,7 +368,6 @@ with gr.Blocks() as demo:
353
  with gr.Row():
354
  gr.Markdown('''Try a different <b>seed value</b> if the result is unsatisfying (Default: 42).''')
355
 
356
- gr.Markdown(_LINKS_)
357
  gr.Markdown(_CITE_)
358
 
359
  mv_images = gr.State()
 
245
 
246
  _HEADER_ = '''
247
  <h2><b>Official πŸ€— Gradio Demo</b></h2><h2><a href='https://github.com/TencentARC/InstantMesh' target='_blank'><b>InstantMesh: Efficient 3D Mesh Generation from a Single Image with Sparse-view Large Reconstruction Models</b></a></h2>
 
248
 
249
+ **InstantMesh** is a feed-forward framework for efficient 3D mesh generation from a single image based on the LRM/Instant3D architecture.
250
+
251
+ Code: <a href='https://github.com/TencentARC/InstantMesh' target='_blank'>GitHub</a>. Techenical report: <a href='https://arxiv.org/abs/2404.07191' target='_blank'>ArXiv</a>.
252
+
253
+ ❗️❗️❗️**Important Notes:**
254
+ - Our demo can export a .obj mesh with vertex colors or a .glb mesh now. If you prefer to export a .obj mesh with a **texture map**, please refer to our <a href='https://github.com/TencentARC/InstantMesh?tab=readme-ov-file#running-with-command-line' target='_blank'>Github Repo</a>.
255
+ - The 3D mesh generation results highly depend on the quality of generated multi-view images. Please try a different **seed value** if the result is unsatisfying (Default: 42).
256
  '''
257
 
258
  _CITE_ = r"""
259
+ If InstantMesh is helpful, please help to ⭐ the <a href='https://github.com/TencentARC/InstantMesh' target='_blank'>Github Repo</a>. Thanks! [![GitHub Stars](https://img.shields.io/github/stars/TencentARC/InstantMesh?style=social)](https://github.com/TencentARC/InstantMesh)
260
+ ---
261
+ πŸ“ **Citation**
262
+
263
+ If you find our work useful for your research or applications, please cite using this bibtex:
264
  ```bibtex
265
  @article{xu2024instantmesh,
266
  title={InstantMesh: Efficient 3D Mesh Generation from a Single Image with Sparse-view Large Reconstruction Models},
 
269
  year={2024}
270
  }
271
  ```
272
+
273
+ πŸ“‹ **License**
274
+
275
+ Apache-2.0 LICENSE. Please refer to the [LICENSE file](https://huggingface.co/spaces/TencentARC/InstantMesh/blob/main/LICENSE) for details.
276
+
277
+ πŸ“§ **Contact**
278
+
279
+ If you have any questions, feel free to open a discussion or contact us at <b>bluestyle928@gmail.com</b>.
280
  """
281
 
282
 
 
357
  label="Output Model (OBJ Format)",
358
  interactive=False,
359
  )
360
+ gr.Markdown("Note: Downloaded .obj model will be flipped. Export .glb instead or manually flip it before usage.")
361
  with gr.Tab("GLB"):
362
  output_model_glb = gr.Model3D(
363
  label="Output Model (GLB Format)",
 
368
  with gr.Row():
369
  gr.Markdown('''Try a different <b>seed value</b> if the result is unsatisfying (Default: 42).''')
370
 
 
371
  gr.Markdown(_CITE_)
372
 
373
  mv_images = gr.State()