Spaces:
Runtime error
Runtime error
改版面1
Browse files
app.py
CHANGED
@@ -244,36 +244,18 @@ def make3d(images):
|
|
244 |
|
245 |
|
246 |
_HEADER_ = '''
|
247 |
-
<h2><b
|
248 |
|
249 |
|
250 |
❗️❗️❗️**Important Notes:**
|
251 |
-
- 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>.
|
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 |
_CITE_ = r"""
|
256 |
-
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)
|
257 |
-
---
|
258 |
-
📝 **Citation**
|
259 |
-
|
260 |
-
If you find our work useful for your research or applications, please cite using this bibtex:
|
261 |
-
```bibtex
|
262 |
-
@article{xu2024instantmesh,
|
263 |
-
title={InstantMesh: Efficient 3D Mesh Generation from a Single Image with Sparse-view Large Reconstruction Models},
|
264 |
-
author={Xu, Jiale and Cheng, Weihao and Gao, Yiming and Wang, Xintao and Gao, Shenghua and Shan, Ying},
|
265 |
-
journal={arXiv preprint arXiv:2404.07191},
|
266 |
-
year={2024}
|
267 |
-
}
|
268 |
-
```
|
269 |
|
270 |
📋 **License**
|
271 |
|
272 |
-
Apache-2.0 LICENSE.
|
273 |
-
|
274 |
-
📧 **Contact**
|
275 |
-
|
276 |
-
If you have any questions, feel free to open a discussion or contact us at <b>bluestyle928@gmail.com</b>.
|
277 |
"""
|
278 |
|
279 |
|
@@ -317,16 +299,6 @@ with gr.Blocks() as demo:
|
|
317 |
with gr.Row():
|
318 |
submit = gr.Button("Generate", elem_id="generate", variant="primary")
|
319 |
|
320 |
-
with gr.Row(variant="panel"):
|
321 |
-
gr.Examples(
|
322 |
-
examples=[
|
323 |
-
os.path.join("examples", img_name) for img_name in sorted(os.listdir("examples"))
|
324 |
-
],
|
325 |
-
inputs=[input_image],
|
326 |
-
label="Examples",
|
327 |
-
cache_examples=False,
|
328 |
-
examples_per_page=16
|
329 |
-
)
|
330 |
|
331 |
with gr.Column():
|
332 |
|
|
|
244 |
|
245 |
|
246 |
_HEADER_ = '''
|
247 |
+
<h2><b>🤗Gradio Demo</b></h2><h2><a href='https://huggingface.co/spaces/ZZZXIANG/IMAGETO' target='_blank'><b>IMAGE-TO-3D</b></a></h2>
|
248 |
|
249 |
|
250 |
❗️❗️❗️**Important Notes:**
|
|
|
251 |
- 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).
|
252 |
'''
|
253 |
|
254 |
_CITE_ = r"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
255 |
|
256 |
📋 **License**
|
257 |
|
258 |
+
Apache-2.0 LICENSE.
|
|
|
|
|
|
|
|
|
259 |
"""
|
260 |
|
261 |
|
|
|
299 |
with gr.Row():
|
300 |
submit = gr.Button("Generate", elem_id="generate", variant="primary")
|
301 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
302 |
|
303 |
with gr.Column():
|
304 |
|