Loading spatial photo
Loading spatial photo
Loading spatial photomove your cursor to interacttap to interact
What is a
Spatial Photo?
A Spatial Photo is a still image you can view from slightly different positions. The foreground shifts against the background, giving it a sense of depth.
Spatial Photos uses Apple’s ML-SHARP to estimate a 3D scene from one image, then saves it as a compact .spatial file for the web.
Quickstart
Documentation- 01
Install
Clone the project and install the dependencies. Requires Python 3.11+ and a C++20 compiler.
- 02
Generate
Choose an image. The model checkpoint (about 2.8 GB) downloads automatically on first use.
Terminalpython predict.py input.jpg output.spatial Your file stays on your device.
- 04
Embed
Install and import the web component, then set its size with CSS.