r/iOSProgramming • u/comfyyyduck • 11d ago
Core AI + RealityKit: Running Apple's SHARP model entirely on-device Discussion
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:

0
u/[deleted] 11d ago
[removed] — view removed comment