How krdgomer/elevate3d works
Elevate3D turns an aerial or satellite RGB image into a textured 3D model. The principal workflow validates an image, predicts a DSM, derives terrain elevation, segments buildings, detects trees, then builds and displays or saves a mesh. The web app accepts uploads and serves generated models; the Python API runs the same pipeline. The README documents these capabilities, while source excerpts and the SOURCE INDEX support the main call relationships. Some internal details are unsampled, so those links are omitted.
Main entry points: generate_mesh.py Mesh Orchestrator · run_pipeline.py Pipeline · app.py Web App · download_manager.py Weight and Asset Downloads
Components 21
User Interfaces
- Web App
elevate3d/app.py - Browser Viewer
elevate3d/static/js/threejs-setup.js - Upload Interface
elevate3d/static/js/upload-handler.js - Pipeline
elevate3d/run_pipeline.py - Configuration
elevate3d/config.py
Image Inference
- DSM Prediction
elevate3d/core/dsm/predict_dsm.py - Terrain Extraction
elevate3d/core/dsm/dsm2dtm.py - Building Segmentation
elevate3d/core/mask/predict_mask.py - Tree Detection
elevate3d/core/deepforest/deepforest.py - Roof Classifier
elevate3d/core/roof/predict_roof.py
3D Reconstruction
- Mesh Orchestrator
elevate3d/core/mesh/generate_mesh.py - Building Features
elevate3d/core/mesh/building.py - Building Meshes
elevate3d/core/mesh/generate_building_mesh.py - Terrain Mesh
elevate3d/core/mesh/generate_terrain_mesh.py - Tree Meshes
elevate3d/core/mesh/generate_tree_mesh.py
Models and Assets
- Neural Models
elevate3d/core/models.py - Texture Manager
elevate3d/core/mesh/texture_manager.py - Weight and Asset Downloads
elevate3d/utils/download_manager.py
Other components
- User
- Hugging Face Hub
- 3D Model File
Connections 31
- User → Web App: uploads image
README.md - User → Pipeline: runs API
README.md - Web App → Configuration: configures limits
elevate3d/app.py - Web App → Pipeline: runs pipeline
elevate3d/app.py - Web App → Browser Viewer: serves model
- Upload Interface → Web App: submits upload
- Browser Viewer → User: shows result
README.md - Pipeline → Configuration: checks image size
elevate3d/run_pipeline.py - Pipeline → DSM Prediction: predicts elevation
elevate3d/run_pipeline.py - Pipeline → Terrain Extraction: derives terrain
elevate3d/run_pipeline.py - Pipeline → Building Segmentation: predicts buildings
elevate3d/run_pipeline.py - Pipeline → Tree Detection: detects trees
elevate3d/run_pipeline.py - Pipeline → Mesh Orchestrator: generates model
elevate3d/run_pipeline.py - Building Segmentation → Neural Models: builds Mask R-CNN
elevate3d/core/mask/predict_mask.py - Building Segmentation → Weight and Asset Downloads: loads weights
elevate3d/core/mask/predict_mask.py - DSM Prediction → Neural Models: uses generator
elevate3d/core/dsm/predict_dsm.py - DSM Prediction → Weight and Asset Downloads: loads weights
elevate3d/core/dsm/predict_dsm.py - Mesh Orchestrator → Building Features: extracts buildings
elevate3d/core/mesh/generate_mesh.py - Mesh Orchestrator → Building Meshes: generates buildings
elevate3d/core/mesh/generate_mesh.py - Mesh Orchestrator → Terrain Mesh: generates terrain
elevate3d/core/mesh/generate_mesh.py - Mesh Orchestrator → Tree Meshes: generates trees
elevate3d/core/mesh/generate_mesh.py - Mesh Orchestrator → Roof Classifier: initializes classifier
elevate3d/core/mesh/generate_mesh.py - Mesh Orchestrator → Texture Manager: loads textures
elevate3d/core/mesh/generate_mesh.py - Building Features → Roof Classifier: predicts roof type
elevate3d/core/mesh/building.py - Building Meshes → Building Features: meshes buildings
elevate3d/core/mesh/generate_building_mesh.py - Tree Meshes → Building Features: checks buildings
elevate3d/core/mesh/generate_mesh.py - Texture Manager → Weight and Asset Downloads: downloads textures
elevate3d/core/mesh/texture_manager.py - Roof Classifier → Weight and Asset Downloads: loads weights
elevate3d/core/roof/predict_roof.py - Weight and Asset Downloads → Hugging Face Hub: fetches assets
elevate3d/utils/download_manager.py - Mesh Orchestrator → 3D Model File: exports model
elevate3d/core/mesh/generate_mesh.py - Web App → 3D Model File: serves model
elevate3d/app.py