Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -62,12 +62,19 @@ def remove_background(result):
|
|
| 62 |
return result
|
| 63 |
|
| 64 |
|
|
|
|
|
|
|
| 65 |
# Create a Gradio interface for the Zero123++ model
|
| 66 |
with gr.Blocks() as demo:
|
| 67 |
-
|
| 68 |
gr.HTML("<h1><center> Interactive WebUI : Zero123++ </center></h1>")
|
| 69 |
-
gr.
|
| 70 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 71 |
with gr.Row():
|
| 72 |
# Input section: Allow users to upload an image
|
| 73 |
with gr.Column():
|
|
@@ -95,6 +102,4 @@ with gr.Blocks() as demo:
|
|
| 95 |
|
| 96 |
|
| 97 |
|
| 98 |
-
demo.launch(debug=
|
| 99 |
-
|
| 100 |
-
|
|
|
|
| 62 |
return result
|
| 63 |
|
| 64 |
|
| 65 |
+
abstract = '''Zero123++ is an image-conditioned diffusion model for generating 3D-consistent multi-view images from a single input view. To take full advantage of pretrained 2D generative priors, authors have developed various conditioning and training schemes to minimize the effort of finetuning from off-the-shelf image diffusion models such as Stable Diffusion. Zero123++ excels in producing high-quality, consistent multi-view images from a single image, overcoming common issues like texture degradation and geometric misalignment. Furthermore, authors showcase the feasibility of training a ControlNet on Zero123++ for enhanced control over the generation process.
|
| 66 |
+
'''
|
| 67 |
# Create a Gradio interface for the Zero123++ model
|
| 68 |
with gr.Blocks() as demo:
|
| 69 |
+
# Display a title
|
| 70 |
gr.HTML("<h1><center> Interactive WebUI : Zero123++ </center></h1>")
|
| 71 |
+
with gr.Row():
|
| 72 |
+
with gr.Column(scale=1):
|
| 73 |
+
gr.HTML('''<img src='https://huggingface.co/spaces/ysharma/Zero123PlusDemo/resolve/main/teaser-low.jpg'>''')
|
| 74 |
+
with gr.Column(scale=5):
|
| 75 |
+
gr.HTML("<h3>A Single Image to Consistent Multi-view Diffusion Base Model</h3>")
|
| 76 |
+
gr.HTML('''<a href='https://arxiv.org/abs/2310.15110' target='_blank'>ArXiv</a> - <a href='https://github.com/SUDO-AI-3D/zero123plus/tree/main' target='_blank'>Code</a>''')
|
| 77 |
+
gr.HTML(f'<b>Abstract:</b> {abstract}')
|
| 78 |
with gr.Row():
|
| 79 |
# Input section: Allow users to upload an image
|
| 80 |
with gr.Column():
|
|
|
|
| 102 |
|
| 103 |
|
| 104 |
|
| 105 |
+
demo.launch(debug=False)
|
|
|
|
|
|