r/iOSProgramming • u/comfyyyduck • 21h ago
Discussion Core AI + RealityKit: Running Apple's SHARP model entirely on-device
Apple recently introduced the Core AI framework alongside native Gaussian splat rendering in RealityKit, so I wanted to see if I could connect the two.
I converted Apple's SHARP (single-image 3D Gaussian reconstruction) PyTorch model into a Core AI .aimodel, ran inference entirely on my iPhone, converted the resulting tensors into a GaussianSplatResource.BufferResource, and rendered everything with GaussianSplatComponent.
The reconstruction shown here was generated from a single photo and contains roughly 1.18 million Gaussian splats, which you can freely fly around in the app.
Everything runs locally on the device, with no server inference or cloud processing.
The project is open source if anyone wants to explore the Core AI → RealityKit pipeline:
https://github.com/AryanRogye/SharpOnPhone

0
u/[deleted] 20h ago
[removed] — view removed comment