PRISM
Photoreal Reconstruction & ISR Scene Mapping. A pipeline that takes a drone sweep of a building interior, trains a 3D Gaussian splat from it, and uses a vision-language model to mark doors, windows, and other ways in.
What it does
PRISM turns a drone sweep of a building interior into a 3D Gaussian Splatting reconstruction, then reads that reconstruction with a vision-language model (VLM) to tag entry points, cover, and hazards. The use case is ISR (intelligence, surveillance, reconnaissance): getting from raw sensor passes to a usable map quickly.
It runs in four phases. A virtual drone captures posed frames, an orchestrator notices when a flight finishes and starts training, the splatting engine reconstructs the scene in about a minute, and the VLM layer turns the reconstruction into a map. I built and benchmarked the reconstruction side on static data first, and only then wired in the virtual drone.
Training a splat in about 60 seconds
The reconstruction uses splatfacto, nerfstudio's Gaussian splatting method with the gsplat backend. The goal for this phase was a reconstruction in under 60 seconds on one GPU, with the speed and quality tradeoff actually measured. A benchmark harness sweeps the iteration budget on an RTX 6000 Ada, records end-to-end wall-clock time (COLMAP load, optimization, checkpoint), and scores each run on held-out views.
| max iters | train (s) | < 60 s | PSNR | SSIM | LPIPS |
|---|---|---|---|---|---|
| 15000 (full-quality reference) | 136 | no | 29.59 | 0.909 | 0.065 |
| 7000 | 67.9 | no | 29.07 | 0.897 | 0.086 |
| 6300 (recommended) | ≈60 | about | 28.56 | 0.888 | 0.098 |
| 6000 | 58.5 | yes | 25.83 | 0.813 | 0.161 |
| 2000 | 24.1 | yes | 20.14 | 0.575 | 0.440 |
Quality jumps sharply, from 25.8 to 28.6 dB, right around the 60-second mark. The setting I'd use is 6,300 iterations: about 60 s, 28.56 dB PSNR, 0.888 SSIM.
What did and didn't help:
- Raising
densify-grad-threshfrom 0.0008 to 0.0015 was the main win. It splits fewer Gaussians (about 383k instead of 450k), which makes each iteration cheaper, and PSNR went up slightly. - Stopping densification earlier did nothing, because splatfacto has already reached its full Gaussian count by around iteration 3,000.
- Training at lower resolution backfired. At downscale 8 the split heuristic ran away and the run hit a 46 GB CUDA out-of-memory error.
- A shorter warmup didn't move the quality jump. Convergence depends on the scene, not on when densification starts.
Capture and orchestration
A virtual drone flies a high-overlap sweep of a procedural interior. Because the simulator knows the exact camera poses, the frames go straight to splatfacto with no COLMAP step. Rendering is headless Blender (bpy), which I picked over ROS2, Gazebo, and AirSim because it runs without root and outputs ground-truth poses. A small numpy flight planner generates boustrophedon, orbit, spiral, and wall-follow paths and writes them to a nerfstudio transforms.json.
An orchestrator ties it together, using files on disk as its state. run does capture, then training, then rendering. watch waits for a flight's completion file and starts training as soon as the drone (possibly a remote one) is done. Since all the state is on disk, it survives restarts and works whether it starts before, during, or after a capture. On a furnished room, one command produces a reconstruction after about 50 s of training (PSNR 27.2, no COLMAP).
The biggest lesson came from a harder scene, the CC0 Blender Classroom: how well the drone covers the room matters more than how long you train. A single orbit produced a blurry blob, and more iterations made it worse, since Gaussian splatting can only fit the views it's given. What fixed it was a proper survey flight: oblique serpentine passes in both directions, a pass along the walls, and a pass looking down at the floor. With that coverage the geometry came back, and around 15k iterations was the sweet spot before it started overfitting.
Seeding with simulated LiDAR
By default splatfacto starts from 50k random points. PRISM can instead simulate a LiDAR: cast rays into the scene from each capture pose, color the hits from the rendered images, and merge them into a seed point cloud. On a real abandoned-warehouse capture (CC-BY), changing only the seed gave +2.3 dB PSNR and 30% lower LPIPS, with sharper geometry and fewer floaters, mostly on flat, low-texture surfaces. The image at the top of this page comes from that run.
From reconstruction to a map
PRISM renders wall-facing keyframes from the trained splat, both color and depth, since a real drone would only have the splat and not ground truth. Each keyframe goes to a VLM that boxes doors, windows, openings, cover, and hazards with a confidence score. Every detection is then projected into 3D world coordinates using the splat's rendered depth, and repeated sightings from different views are merged into one. This is where reconstruction quality pays off: better depth means detections land in the right place.
The detector sits behind one interface: Google Gemini by default, a local Ollama model that needs no API key, or a mock for the tests. Besides the fixed list of features, it takes an open-ended watch list (person, weapon, red backpack, gas cylinder, anything), keeps a profile for each tracked entity (location, number of sightings, confidence across views, posture, clothing, whether armed, activity), and scores the run against mission objectives as met, partial, unmet, or alert.
What only works in simulation
Everything above was tested in simulation, and part of it depends on that. The fast training is real: it was benchmarked on the Inria playroom dataset with real images and COLMAP poses. The reconstruction-to-map pipeline also runs end to end. But skipping COLMAP relies on the simulator handing over perfect camera poses, and a real drone flying indoors without GPS doesn't have those.
To see how much that matters, I added realistic pose error to the training frames only and scored against clean held-out views:
| pose error per frame | PSNR | change | SSIM |
|---|---|---|---|
| 0 (simulator) | 21.25 | 0 | 0.591 |
| 0.5 cm / 0.2° | 18.28 | −2.98 | 0.414 |
| 1.5 cm / 0.5° | 16.42 | −4.84 | 0.369 |
| 3 cm / 1.0° | 15.51 | −5.75 | 0.363 |
| 6 cm / 2.0° | 14.61 | −6.64 | 0.359 |
Even half a centimeter and 0.2° of error per frame costs about 3 dB. The centimeter-and-degree errors a real indoor SfM or VIO pipeline usually produces cost 5 to 7 dB, and SSIM drops sharply. Adding realistic camera effects on top (motion blur, rolling shutter, exposure and white-balance drift, lens distortion) brings the total loss to about 7 dB.
The way around this is LiDAR odometry. The same simulated sensor that seeds the splat also gives a scan every frame, and point-to-plane ICP against a rolling local map recovers the trajectory without GPS or camera SfM. On a 93 m path through the warehouse it drifted about 6 cm overall, but stayed under a centimeter and 0.05° from one frame to the next. Frame-to-frame consistency is what matters most for splat quality, so that lands in the good end of the table above. A real LiDAR could supply both the poses and the seed geometry.
Next
transforms.json is the boundary between "where is the camera" and "reconstruct and interpret," and I've already swapped the simulator's poses for LiDAR odometry there without touching the other three phases. The next step is putting a real SfM, VIO, or LiDAR-inertial odometry stack at that boundary and testing on real interior footage. The degrade, stress-test, and COLMAP-recovery tools in the repo are there for that.
Fernando Guzman