Fernando Guzman

June 2026 · Code on GitHub

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.

A raw LiDAR point cloud on one side of a sweep line, the trained Gaussian splat on the other
Fly-through of a warehouse: the raw LiDAR point cloud resolving into the trained splat as the sweep line passes.

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.

One RTX 6000 Ada, Inria "playroom" scene (225 images), downscale 4. Train time is end-to-end wall-clock. PSNR, SSIM, and LPIPS from ns-eval on the held-out split.
max iterstrain (s)< 60 sPSNRSSIMLPIPS
15000 (full-quality reference)136no29.590.9090.065
700067.9no29.070.8970.086
6300 (recommended)≈60about28.560.8880.098
600058.5yes25.830.8130.161
200024.1yes20.140.5750.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:

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.

Top-down floorplan heatmap of entry points with typed markers
Output: a top-down heatmap of entry points, with markers for cover, hazards, doors, windows, and openings.

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:

Warehouse scene, 597 training views, 86 clean held-out views. Only the training split gets pose error (the kind VIO or SfM produces).
pose error per framePSNRchangeSSIM
0 (simulator)21.2500.591
0.5 cm / 0.2°18.28−2.980.414
1.5 cm / 0.5°16.42−4.840.369
3 cm / 1.0°15.51−5.750.363
6 cm / 2.0°14.61−6.640.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.

Back to projects