SHARP Core ML, 16-bit (Model Derivative)
Apple Machine Learning Research Model is licensed under the Apple Machine Learning Research Model License Agreement.
This is a Model Derivative of Apple's SHARP model ("Sharp Monocular View Synthesis in Less Than a Second", apple/ml-sharp), made from the community Core ML conversion pearsonkyle/Sharp-coreml. It is not made, endorsed or supported by Apple. Use is limited to non-commercial research purposes, as set out in LICENSE_MODEL, which applies to this derivative in full.
What was changed
Only the numeric precision. Architecture, training, weights' values (up to rounding) and the inputs/outputs are unchanged:
- Weights and computation converted from 32-bit to 16-bit floating point with coremltools 9.0
(
ct.convert(..., compute_precision=ct.precision.FLOAT16, minimum_deployment_target=ct.target.macOS12), starting from the original ML program). - Inputs and outputs stay 32-bit:
imagefloat32[1, 3, 1536, 1536]in 0β1,disparity_factorfloat32[1]; the five Gaussian tensors (1,179,648 Gaussians) as in the original. - Weight file 1.34 GB instead of 2.67 GB.
Measured (MacBook Air M1, 8 GB, one 1536Γ1536 photo)
| Model / compute units | Time per photo | Peak memory | Depth error vs. 32-bit on CPU |
|---|---|---|---|
Original 32-bit, cpuAndNeuralEngine (runs on CPU) |
72β86 s | 3.4 GB | β |
This 16-bit, cpuAndGPU |
15 s | 3.2 GB | 0.3 % median |
This 16-bit, cpuAndNeuralEngine |
24 s | 1.8 GB | 1.3 % median after a uniform ~4.7 % scale |
Files
sharp.mlpackage/β the Core ML package (weight.binsha256dc0adec8ecf77e9f7ab80dfb5364443695fe22cee030a27cf1cd498a11c16eff)LICENSE_MODELβ Apple Machine Learning Research Model License Agreement (must accompany any redistribution)
- Downloads last month
- 12
Inference Providers NEW
This model isn't deployed by any Inference Provider. π Ask for provider support