Spaces:
Runtime error
Runtime error
Update for Step 1
Browse files
app.py
CHANGED
@@ -243,43 +243,15 @@ def make3d(images):
|
|
243 |
return mesh_fpath, mesh_glb_fpath
|
244 |
|
245 |
|
246 |
-
_HEADER_ =
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
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},
|
267 |
-
author={Xu, Jiale and Cheng, Weihao and Gao, Yiming and Wang, Xintao and Gao, Shenghua and Shan, Ying},
|
268 |
-
journal={arXiv preprint arXiv:2404.07191},
|
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 |
-
|
283 |
with gr.Blocks() as demo:
|
284 |
gr.Markdown(_HEADER_)
|
285 |
with gr.Row(variant="panel"):
|
@@ -368,8 +340,6 @@ with gr.Blocks() as demo:
|
|
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()
|
374 |
|
375 |
submit.click(fn=check_input_image, inputs=[input_image]).success(
|
|
|
243 |
return mesh_fpath, mesh_glb_fpath
|
244 |
|
245 |
|
246 |
+
_HEADER_ = """
|
247 |
+
## Step 1: Generate the 3D Mesh
|
248 |
+
For this step, we use <a href='https://github.com/TencentARC/InstantMesh' target='_blank'>InstantMesh</a>, an open-source model for **fast** feedforward 3D mesh generation from a single image.
|
249 |
+
During this step, you need to upload an image of what you want to generate a 3D Model from.
|
250 |
+
## 💡 Tips
|
251 |
+
- If there's a background, ✅ Remove background.
|
|
|
|
|
|
|
252 |
- 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).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
253 |
"""
|
254 |
|
|
|
255 |
with gr.Blocks() as demo:
|
256 |
gr.Markdown(_HEADER_)
|
257 |
with gr.Row(variant="panel"):
|
|
|
340 |
with gr.Row():
|
341 |
gr.Markdown('''Try a different <b>seed value</b> if the result is unsatisfying (Default: 42).''')
|
342 |
|
|
|
|
|
343 |
mv_images = gr.State()
|
344 |
|
345 |
submit.click(fn=check_input_image, inputs=[input_image]).success(
|