Tohru127 commited on
Commit
fee684e
Β·
verified Β·
1 Parent(s): c988b1a

Updated tab

Browse files
Files changed (1) hide show
  1. app.py +6 -12
app.py CHANGED
@@ -181,7 +181,7 @@ dpt_processor = None
181
  # ============================================================================
182
 
183
  def process_image(image, model_choice="GLPN (Recommended)", visualization_type="mesh"):
184
- """Main processing pipeline - simplified from first version"""
185
 
186
  if image is None:
187
  return None, None, None, "Please upload an image first.", None
@@ -506,12 +506,11 @@ def process_image(image, model_choice="GLPN (Recommended)", visualization_type="
506
  # GRADIO INTERFACE
507
  # ============================================================================
508
 
509
- with gr.Blocks(title="Advanced 3D Reconstruction", theme=gr.themes.Soft()) as demo:
510
 
511
  gr.Markdown("""
512
- # πŸ—οΈ Advanced 3D Reconstruction from Single Images
513
 
514
- **Academic-grade pipeline for monocular depth estimation and 3D surface reconstruction**
515
 
516
  Upload an image to generate:
517
  - High-quality depth maps
@@ -524,7 +523,7 @@ with gr.Blocks(title="Advanced 3D Reconstruction", theme=gr.themes.Soft()) as de
524
  with gr.Tabs():
525
 
526
  # ========== RECONSTRUCTION TAB ==========
527
- with gr.Tab("🎯 Reconstruction"):
528
  with gr.Row():
529
  with gr.Column(scale=1):
530
  input_image = gr.Image(type="pil", label="Upload Image")
@@ -542,7 +541,7 @@ with gr.Blocks(title="Advanced 3D Reconstruction", theme=gr.themes.Soft()) as de
542
  label="3D Visualization Type"
543
  )
544
 
545
- reconstruct_btn = gr.Button("πŸš€ Start Reconstruction", variant="primary", size="lg")
546
 
547
  with gr.Column(scale=2):
548
  depth_output = gr.Image(label="Depth Map Comparison")
@@ -854,18 +853,13 @@ with gr.Blocks(title="Advanced 3D Reconstruction", theme=gr.themes.Soft()) as de
854
 
855
  # ========== FOOTER ==========
856
  gr.Markdown("""
857
- ---
858
-
859
- ### πŸŽ“ PhD Application Demo
860
-
861
  This application demonstrates comprehensive understanding of:
862
  - Computer vision and deep learning
863
  - 3D geometry and reconstruction
864
  - Software engineering best practices
865
  - Research methodology and evaluation
866
 
867
- **Developed for academic research purposes**
868
-
869
  *Version 1.0*
870
  """)
871
 
 
181
  # ============================================================================
182
 
183
  def process_image(image, model_choice="GLPN (Recommended)", visualization_type="mesh"):
184
+ """Main processing pipeline"""
185
 
186
  if image is None:
187
  return None, None, None, "Please upload an image first.", None
 
506
  # GRADIO INTERFACE
507
  # ============================================================================
508
 
509
+ with gr.Blocks(title="3D Reconstruction", theme=gr.themes.Soft()) as demo:
510
 
511
  gr.Markdown("""
512
+ # πŸ—οΈ 3D Reconstruction from Single Images
513
 
 
514
 
515
  Upload an image to generate:
516
  - High-quality depth maps
 
523
  with gr.Tabs():
524
 
525
  # ========== RECONSTRUCTION TAB ==========
526
+ with gr.Tab("Reconstruction"):
527
  with gr.Row():
528
  with gr.Column(scale=1):
529
  input_image = gr.Image(type="pil", label="Upload Image")
 
541
  label="3D Visualization Type"
542
  )
543
 
544
+ reconstruct_btn = gr.Button("Start Reconstruction", variant="primary", size="lg")
545
 
546
  with gr.Column(scale=2):
547
  depth_output = gr.Image(label="Depth Map Comparison")
 
853
 
854
  # ========== FOOTER ==========
855
  gr.Markdown("""
856
+ ---
 
 
 
857
  This application demonstrates comprehensive understanding of:
858
  - Computer vision and deep learning
859
  - 3D geometry and reconstruction
860
  - Software engineering best practices
861
  - Research methodology and evaluation
862
 
 
 
863
  *Version 1.0*
864
  """)
865