How luciddreamer-cvlab/luciddreamer works
LucidDreamer is the primary product: it expands a conditioned image into a 3D Gaussian scene and renders RGB/depth video along a camera path. The repository also includes ZoeDepth as a separate metric-depth model with prediction and image-to-3D demo tabs, plus dataset/model/training components. Edges follow the README or shown imports and calls; unsampled CLI and ZoeDepth training internals are represented without speculative call chains.
Main entry points: luciddreamer.py LucidDreamer · app.py ZoeDepth demo · __init__.py Gaussian renderer · builder.py Model builder
Components 24
Scene generation
- CLI entry
run.py - Gradio demo
app.py - LucidDreamer
luciddreamer.py - Image inpainting
utils/lama.py - Depth utilities
utils/depth.py - Camera paths
utils/trajectory.py - RGB/depth video
luciddreamer.py
Gaussian scene
- Scene inputs
scene/dataset_readers.py - Camera models
scene/cameras.py - Gaussian model
scene/gaussian_model.py - Gaussian renderer
gaussian_renderer/__init__.py - Depth rasterizer
submodules/depth-diff-gaussian-rasterization-min/depth_diff_gaussian_rasterization_min/__init__.py
ZoeDepth estimation
- ZoeDepth demo
ZoeDepth/ui/app.py - Depth prediction
ZoeDepth/ui/gradio_depth_pred.py - Image to 3D
ZoeDepth/ui/gradio_im_to_3d.py - Panorama to 3D
ZoeDepth/ui/gradio_pano_to_3d.py - Model builder
ZoeDepth/zoedepth/models/builder.py - Depth model
ZoeDepth/zoedepth/models/depth_model.py - ZoeDepth variants
ZoeDepth/zoedepth/models/zoedepth_nk/zoedepth_nk_v1.py - Model I/O
ZoeDepth/zoedepth/models/model_io.py
Depth model data and training
- Model configuration
ZoeDepth/zoedepth/utils/config.py - Monocular datasets
ZoeDepth/zoedepth/data/data_mono.py - Training runtime
ZoeDepth/zoedepth/trainers/base_trainer.py
Other components
- User
Connections 27
- User → CLI entry: runs
README.md - User → Gradio demo: opens
README.md - CLI entry → LucidDreamer: starts generation
- Gradio demo → LucidDreamer: invokes
app.py - LucidDreamer → Image inpainting: uses inpainting
luciddreamer.py - LucidDreamer → Depth utilities: uses depth
luciddreamer.py - LucidDreamer → Camera paths: uses paths
luciddreamer.py - LucidDreamer → Scene inputs: loads scene data
luciddreamer.py - LucidDreamer → Gaussian model: optimizes
luciddreamer.py - LucidDreamer → Gaussian renderer: renders views
luciddreamer.py - LucidDreamer → Camera models: uses camera
luciddreamer.py - Gaussian renderer → Gaussian model: reads attributes
gaussian_renderer/__init__.py - Gaussian renderer → Camera models: reads transforms
gaussian_renderer/__init__.py - Gaussian renderer → Depth rasterizer: rasterizes
gaussian_renderer/__init__.py - LucidDreamer → RGB/depth video: returns videos
luciddreamer.py - User → ZoeDepth demo: opens demo
ZoeDepth/ui/app.py - ZoeDepth demo → Model builder: loads pretrained model
- ZoeDepth demo → Depth prediction: registers tab
ZoeDepth/ui/app.py - ZoeDepth demo → Image to 3D: registers tab
ZoeDepth/ui/app.py - ZoeDepth demo → Panorama to 3D: registers tab
ZoeDepth/ui/app.py - Model builder → Depth model: constructs
ZoeDepth/zoedepth/models/builder.py - ZoeDepth variants → Depth model: extends
ZoeDepth/zoedepth/models/zoedepth_nk/zoedepth_nk_v1.py - ZoeDepth variants → Model I/O: loads weights
ZoeDepth/zoedepth/models/zoedepth_nk/zoedepth_nk_v1.py - Model builder → ZoeDepth variants: selects variant
- Monocular datasets → Model configuration: reads settings
ZoeDepth/zoedepth/data/data_mono.py - Training runtime → Model configuration: reads settings
ZoeDepth/zoedepth/trainers/base_trainer.py - Training runtime → Model I/O: saves model
ZoeDepth/zoedepth/trainers/base_trainer.py