Update README.md
Browse files
README.md
CHANGED
|
@@ -1,5 +1,40 @@
|
|
| 1 |
---
|
| 2 |
license: other
|
| 3 |
-
license_name: apple
|
| 4 |
-
license_link:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: other
|
| 3 |
+
license_name: apple-ml-research-model
|
| 4 |
+
license_link: https://github.com/apple/ml-sharp/blob/main/LICENSE_MODEL
|
| 5 |
+
tags:
|
| 6 |
+
- onnx
|
| 7 |
+
- sharp
|
| 8 |
+
- gaussian-splatting
|
| 9 |
+
- research
|
| 10 |
---
|
| 11 |
+
|
| 12 |
+
# SHARP ONNX weights (browser)
|
| 13 |
+
|
| 14 |
+
ONNX exports of [Apple SHARP](https://github.com/apple/ml-sharp) for the
|
| 15 |
+
[Sharp-Onnx-webgpu](https://github.com/pristinaai/Sharp-Onnx-webgpu) browser demo.
|
| 16 |
+
|
| 17 |
+
**Research use only.** Apple Machine Learning Research Model is licensed under the
|
| 18 |
+
[Apple Machine Learning Research Model License Agreement](https://github.com/apple/ml-sharp/blob/main/LICENSE_MODEL).
|
| 19 |
+
|
| 20 |
+
## Files
|
| 21 |
+
|
| 22 |
+
| File | Size (approx.) |
|
| 23 |
+
|------|----------------|
|
| 24 |
+
| `sharp_web_predictor.onnx` | 7 MB |
|
| 25 |
+
| `sharp_web_predictor.onnx.data` | 2.5 GB |
|
| 26 |
+
| `sharp_web_predictor_fp16.onnx` | 7 MB |
|
| 27 |
+
| `sharp_web_predictor_fp16.onnx.data` | 1.2 GB |
|
| 28 |
+
|
| 29 |
+
Each `.onnx` file requires its matching `.onnx.data` sidecar in the same folder/URL path.
|
| 30 |
+
|
| 31 |
+
## Usage in the web app
|
| 32 |
+
|
| 33 |
+
Set these environment variables (Vercel → Settings → Environment Variables):
|
| 34 |
+
|
| 35 |
+
```
|
| 36 |
+
VITE_MODEL_URL_FP32=https://huggingface.co/YOUR_USER/sharp-onnx-webgpu-weights/resolve/main/sharp_web_predictor.onnx
|
| 37 |
+
VITE_MODEL_URL_FP16=https://huggingface.co/YOUR_USER/sharp-onnx-webgpu-weights/resolve/main/sharp_web_predictor_fp16.onnx
|
| 38 |
+
```
|
| 39 |
+
|
| 40 |
+
Replace `YOUR_USER` with your Hugging Face username or org.
|