mast3r-3dgs / app.py
ostapagon's picture
Change style a bit, add new whl. Add examples.
58ec876
raw
history blame
1.58 kB
import sys
sys.path.append('wild-gaussian-splatting/mast3r/')
sys.path.append('demo/')
import gradio as gr
import torch
from mast3r.demo import get_args_parser
from mast3r_demo import mast3r_demo_tab
from gs_demo import gs_demo_tab
if __name__ == '__main__':
with gr.Blocks() as demo:
gr.HTML('''
<div style="text-align: center; padding: 20px; background-color: #f9f9f9; border-radius: 10px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);">
<h2>MASt3R and 3DGS Pipeline Demo</h2>
<p style="font-size: 16px;">This pipeline is designed for 3D reconstruction using MASt3R and 3DGS.</p>
<p style="font-size: 16px;">The process is divided into two stages:</p>
<ol style="text-align: left; display: inline-block; margin: 0 auto;">
<li>MASt3R is used to obtain the initial point cloud and camera parameters.</li>
<li>3DGS is then trained on the results from MASt3R to refine the 3D scene representation.</li>
</ol>
<p style="font-size: 16px;">For a full version of this pipeline, please visit the repository at:</p>
<a href="https://github.com/nerlfield/wild-gaussian-splatting" target="_blank" style="font-size: 16px; text-decoration: none;">nerlfield/wild-gaussian-splatting</a>
</div>
''')
with gr.Tabs():
with gr.Tab("MASt3R"):
mast3r_demo_tab()
with gr.Tab("3DGS"):
gs_demo_tab()
demo.launch(show_error=True, share=None, server_name=None, server_port=None)