Spaces:
Runtime error
Runtime error
Chao Xu
commited on
Commit
·
8897e08
1
Parent(s):
ab80b89
add project and github links
Browse files
app.py
CHANGED
|
@@ -44,11 +44,17 @@ from rembg import remove
|
|
| 44 |
|
| 45 |
_GPU_INDEX = 0
|
| 46 |
|
| 47 |
-
_TITLE = 'One-2-3-45: Any Single Image to 3D Mesh in 45 Seconds without Per-Shape Optimization'
|
| 48 |
|
| 49 |
_DESCRIPTION = '''
|
| 50 |
-
We reconstruct a 3D textured mesh from a single image by initially predicting multi-view images and then lifting them to 3D.
|
|
|
|
|
|
|
| 51 |
'''
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
|
| 53 |
_USER_GUIDE = "Please upload an image in the block above (or choose an example above) and click **Run Generation**."
|
| 54 |
_BBOX_1 = "Predicting bounding box for the input image..."
|
|
@@ -496,6 +502,7 @@ def run_demo(
|
|
| 496 |
with gr.Blocks(title=_TITLE, css=css) as demo:
|
| 497 |
gr.Markdown('# ' + _TITLE)
|
| 498 |
gr.Markdown(_DESCRIPTION)
|
|
|
|
| 499 |
|
| 500 |
with gr.Row(variant='panel'):
|
| 501 |
with gr.Column(scale=1.2):
|
|
|
|
| 44 |
|
| 45 |
_GPU_INDEX = 0
|
| 46 |
|
| 47 |
+
_TITLE = '''One-2-3-45: Any Single Image to 3D Mesh in 45 Seconds without Per-Shape Optimization'''
|
| 48 |
|
| 49 |
_DESCRIPTION = '''
|
| 50 |
+
We reconstruct a 3D textured mesh from a single image by initially predicting multi-view images and then lifting them to 3D.
|
| 51 |
+
[<a href="http://One-2-3-45.com">Project</a>]
|
| 52 |
+
[<a href="https://github.com/One-2-3-45/One-2-3-45">GitHub</a>]
|
| 53 |
'''
|
| 54 |
+
# _HTML = '''<p>[<a href="https://github.com/One-2-3-45/One-2-3-45">GitHub</a>]
|
| 55 |
+
# <object alt="GitHub Repo stars" src="https://img.shields.io/github/stars/One-2-3-45/One-2-3-45?style=social&link=https%3A%2F%2Fgithub.com%2FOne-2-3-45%2FOne-2-3-45">
|
| 56 |
+
# </p>'''
|
| 57 |
+
# _HTML = '<script async defer src="https://buttons.github.io/buttons.js"></script> <a class="github-button" href="https://github.com/One-2-3-45/One-2-3-45" data-icon="octicon-star" data-show-count="true" aria-label="Star One-2-3-45/One-2-3-45 on GitHub">Star</a><p>'
|
| 58 |
|
| 59 |
_USER_GUIDE = "Please upload an image in the block above (or choose an example above) and click **Run Generation**."
|
| 60 |
_BBOX_1 = "Predicting bounding box for the input image..."
|
|
|
|
| 502 |
with gr.Blocks(title=_TITLE, css=css) as demo:
|
| 503 |
gr.Markdown('# ' + _TITLE)
|
| 504 |
gr.Markdown(_DESCRIPTION)
|
| 505 |
+
# gr.HTML(_HTML)
|
| 506 |
|
| 507 |
with gr.Row(variant='panel'):
|
| 508 |
with gr.Column(scale=1.2):
|