Upload folder using huggingface_hub
Browse files- .gitattributes +1 -34
- LICENSE +47 -0
- LICENSE_MODEL +88 -0
- README.md +131 -0
- SHA256SUMS +11 -0
- config.json +7 -0
- manifest.json +84 -0
- sharp_stage_1.onnx +3 -0
- sharp_stage_1.onnx.data +3 -0
- sharp_stage_2.onnx +3 -0
- sharp_stage_3.onnx +3 -0
- sharp_stage_4.onnx +3 -0
.gitattributes
CHANGED
|
@@ -1,35 +1,2 @@
|
|
| 1 |
-
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
-
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
-
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
-
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
-
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
-
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
-
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
-
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
-
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
-
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
-
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 12 |
-
*.model filter=lfs diff=lfs merge=lfs -text
|
| 13 |
-
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 14 |
-
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 15 |
-
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 16 |
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 17 |
-
*.
|
| 18 |
-
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 19 |
-
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 20 |
-
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 21 |
-
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 22 |
-
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 23 |
-
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 24 |
-
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 25 |
-
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 26 |
-
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 27 |
-
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 28 |
-
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 29 |
-
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 30 |
-
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 31 |
-
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 32 |
-
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 33 |
-
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
-
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
-
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.onnx.data filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LICENSE
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Copyright (C) 2025 Apple Inc. All Rights Reserved.
|
| 2 |
+
|
| 3 |
+
Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple
|
| 4 |
+
Inc. ("Apple") in consideration of your agreement to the following
|
| 5 |
+
terms, and your use, installation, modification or redistribution of
|
| 6 |
+
this Apple software constitutes acceptance of these terms. If you do
|
| 7 |
+
not agree with these terms, please do not use, install, modify or
|
| 8 |
+
redistribute this Apple software.
|
| 9 |
+
|
| 10 |
+
In consideration of your agreement to abide by the following terms, and
|
| 11 |
+
subject to these terms, Apple grants you a personal, non-exclusive
|
| 12 |
+
license, under Apple's copyrights in this original Apple software (the
|
| 13 |
+
"Apple Software"), to use, reproduce, modify and redistribute the Apple
|
| 14 |
+
Software, with or without modifications, in source and/or binary forms;
|
| 15 |
+
provided that if you redistribute the Apple Software in its entirety and
|
| 16 |
+
without modifications, you must retain this notice and the following
|
| 17 |
+
text and disclaimers in all such redistributions of the Apple Software.
|
| 18 |
+
Neither the name, trademarks, service marks or logos of Apple Inc. may
|
| 19 |
+
be used to endorse or promote products derived from the Apple Software
|
| 20 |
+
without specific prior written permission from Apple. Except as
|
| 21 |
+
expressly stated in this notice, no other rights or licenses, express or
|
| 22 |
+
implied, are granted by Apple herein, including but not limited to any
|
| 23 |
+
patent rights that may be infringed by your derivative works or by other
|
| 24 |
+
works in which the Apple Software may be incorporated.
|
| 25 |
+
|
| 26 |
+
The Apple Software is provided by Apple on an "AS IS" basis. APPLE
|
| 27 |
+
MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
|
| 28 |
+
THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS
|
| 29 |
+
FOR A PARTICULAR PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND
|
| 30 |
+
OPERATION ALONE OR IN COMBINATION WITH YOUR PRODUCTS.
|
| 31 |
+
|
| 32 |
+
IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL
|
| 33 |
+
OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
| 34 |
+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
| 35 |
+
INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION,
|
| 36 |
+
MODIFICATION AND/OR DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED
|
| 37 |
+
AND WHETHER UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE),
|
| 38 |
+
STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN ADVISED OF THE
|
| 39 |
+
POSSIBILITY OF SUCH DAMAGE.
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
-------------------------------------------------------------------------------
|
| 43 |
+
SOFTWARE DISTRIBUTED IN THIS REPOSITORY:
|
| 44 |
+
|
| 45 |
+
This software includes a number of subcomponents with separate
|
| 46 |
+
copyright notices and license terms - please see the file ACKNOWLEDGEMENTS.
|
| 47 |
+
-------------------------------------------------------------------------------
|
LICENSE_MODEL
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Disclaimer: IMPORTANT: This Apple Machine Learning Research Model is
|
| 2 |
+
specifically developed and released by Apple Inc. ("Apple") for the sole purpose
|
| 3 |
+
of scientific research of artificial intelligence and machine-learning
|
| 4 |
+
technology. “Apple Machine Learning Research Model” means the model, including
|
| 5 |
+
but not limited to algorithms, formulas, trained model weights, parameters,
|
| 6 |
+
configurations, checkpoints, and any related materials (including
|
| 7 |
+
documentation).
|
| 8 |
+
|
| 9 |
+
This Apple Machine Learning Research Model is provided to You by
|
| 10 |
+
Apple in consideration of your agreement to the following terms, and your use,
|
| 11 |
+
modification, creation of Model Derivatives, and or redistribution of the Apple
|
| 12 |
+
Machine Learning Research Model constitutes acceptance of this Agreement. If You
|
| 13 |
+
do not agree with these terms, please do not use, modify, create Model
|
| 14 |
+
Derivatives of, or distribute this Apple Machine Learning Research Model or
|
| 15 |
+
Model Derivatives.
|
| 16 |
+
|
| 17 |
+
* License Scope: In consideration of your agreement to abide by the following
|
| 18 |
+
terms, and subject to these terms, Apple hereby grants you a personal,
|
| 19 |
+
non-exclusive, worldwide, non-transferable, royalty-free, revocable, and
|
| 20 |
+
limited license, to use, copy, modify, distribute, and create Model
|
| 21 |
+
Derivatives (defined below) of the Apple Machine Learning Research Model
|
| 22 |
+
exclusively for Research Purposes. You agree that any Model Derivatives You
|
| 23 |
+
may create or that may be created for You will be limited to Research Purposes
|
| 24 |
+
as well. “Research Purposes” means non-commercial scientific research and
|
| 25 |
+
academic development activities, such as experimentation, analysis, testing
|
| 26 |
+
conducted by You with the sole intent to advance scientific knowledge and
|
| 27 |
+
research. “Research Purposes” does not include any commercial exploitation,
|
| 28 |
+
product development or use in any commercial product or service.
|
| 29 |
+
|
| 30 |
+
* Distribution of Apple Machine Learning Research Model and Model Derivatives:
|
| 31 |
+
If you choose to redistribute Apple Machine Learning Research Model or its
|
| 32 |
+
Model Derivatives, you must provide a copy of this Agreement to such third
|
| 33 |
+
party, and ensure that the following attribution notice be provided: “Apple
|
| 34 |
+
Machine Learning Research Model is licensed under the Apple Machine Learning
|
| 35 |
+
Research Model License Agreement.” Additionally, all Model Derivatives must
|
| 36 |
+
clearly be identified as such, including disclosure of modifications and
|
| 37 |
+
changes made to the Apple Machine Learning Research Model. The name,
|
| 38 |
+
trademarks, service marks or logos of Apple may not be used to endorse or
|
| 39 |
+
promote Model Derivatives or the relationship between You and Apple. “Model
|
| 40 |
+
Derivatives” means any models or any other artifacts created by modifications,
|
| 41 |
+
improvements, adaptations, alterations to the architecture, algorithm or
|
| 42 |
+
training processes of the Apple Machine Learning Research Model, or by any
|
| 43 |
+
retraining, fine-tuning of the Apple Machine Learning Research Model.
|
| 44 |
+
|
| 45 |
+
* No Other License: Except as expressly stated in this notice, no other rights
|
| 46 |
+
or licenses, express or implied, are granted by Apple herein, including but
|
| 47 |
+
not limited to any patent, trademark, and similar intellectual property rights
|
| 48 |
+
worldwide that may be infringed by the Apple Machine Learning Research Model,
|
| 49 |
+
the Model Derivatives or by other works in which the Apple Machine Learning
|
| 50 |
+
Research Model may be incorporated.
|
| 51 |
+
|
| 52 |
+
* Compliance with Laws: Your use of Apple Machine Learning Research Model must
|
| 53 |
+
be in compliance with all applicable laws and regulations.
|
| 54 |
+
|
| 55 |
+
* Term and Termination: The term of this Agreement will begin upon your
|
| 56 |
+
acceptance of this Agreement or use of the Apple Machine Learning Research
|
| 57 |
+
Model and will continue until terminated in accordance with the following
|
| 58 |
+
terms. Apple may terminate this Agreement at any time if You are in breach of
|
| 59 |
+
any term or condition of this Agreement. Upon termination of this Agreement,
|
| 60 |
+
You must cease to use all Apple Machine Learning Research Models and Model
|
| 61 |
+
Derivatives and permanently delete any copy thereof. Sections 3, 6 and 7 will
|
| 62 |
+
survive termination.
|
| 63 |
+
|
| 64 |
+
* Disclaimer and Limitation of Liability: This Apple Machine Learning Research
|
| 65 |
+
Model and any outputs generated by the Apple Machine Learning Research Model
|
| 66 |
+
are provided on an “AS IS” basis. APPLE MAKES NO WARRANTIES, EXPRESS OR
|
| 67 |
+
IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF
|
| 68 |
+
NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE,
|
| 69 |
+
REGARDING THE APPLE MACHINE LEARNING RESEARCH MODEL OR OUTPUTS GENERATED BY
|
| 70 |
+
THE APPLE MACHINE LEARNING RESEARCH MODEL. You are solely responsible for
|
| 71 |
+
determining the appropriateness of using or redistributing the Apple Machine
|
| 72 |
+
Learning Research Model and any outputs of the Apple Machine Learning Research
|
| 73 |
+
Model and assume any risks associated with Your use of the Apple Machine
|
| 74 |
+
Learning Research Model and any output and results. IN NO EVENT SHALL APPLE BE
|
| 75 |
+
LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
| 76 |
+
IN ANY WAY OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION OF
|
| 77 |
+
THE APPLE MACHINE LEARNING RESEARCH MODEL AND ANY OUTPUTS OF THE APPLE MACHINE
|
| 78 |
+
LEARNING RESEARCH MODEL, HOWEVER CAUSED AND WHETHER UNDER THEORY OF CONTRACT,
|
| 79 |
+
TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS
|
| 80 |
+
BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| 81 |
+
|
| 82 |
+
* Governing Law: This Agreement will be governed by and construed under the laws
|
| 83 |
+
of the State of California without regard to its choice of law principles. The
|
| 84 |
+
Convention on Contracts for the International Sale of Goods shall not apply to
|
| 85 |
+
the Agreement except that the arbitration clause and any arbitration hereunder
|
| 86 |
+
shall be governed by the Federal Arbitration Act, Chapters 1 and 2.
|
| 87 |
+
|
| 88 |
+
Copyright (C) 2025 Apple Inc. All Rights Reserved.
|
README.md
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apple-amlr
|
| 3 |
+
library_name: ml-sharp
|
| 4 |
+
pipeline_tag: image-to-3d
|
| 5 |
+
base_model: apple/Sharp
|
| 6 |
+
tags:
|
| 7 |
+
- webgpu
|
| 8 |
+
- onnx
|
| 9 |
+
- transformers.js
|
| 10 |
+
- gaussian-splatting
|
| 11 |
+
- view-synthesis
|
| 12 |
+
- apple-amlr
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# ml-sharp-webgpu
|
| 16 |
+
|
| 17 |
+
This repository contains a browser-oriented ONNX/WebGPU export of Apple's SHARP
|
| 18 |
+
monocular view-synthesis model. It is a derived artifact of the official
|
| 19 |
+
[`apple/Sharp`](https://huggingface.co/apple/Sharp) checkpoint, packaged for the
|
| 20 |
+
`sharp_webgpu.html` browser runtime in
|
| 21 |
+
[`apple/ml-sharp`](https://github.com/apple/ml-sharp).
|
| 22 |
+
|
| 23 |
+
This is not the official Apple checkpoint repository and is not endorsed by
|
| 24 |
+
Apple. The goal of this repo is to make the released research model easier to
|
| 25 |
+
run in WebGPU-capable browsers through the SHARP WebGPU pipeline and
|
| 26 |
+
Transformers.js v4.
|
| 27 |
+
|
| 28 |
+
## Intended Use
|
| 29 |
+
|
| 30 |
+
- Non-commercial scientific research and academic development.
|
| 31 |
+
- Browser-side WebGPU inference for SHARP image-to-splat and panorama workflows.
|
| 32 |
+
- Local validation of the staged ONNX export against the SHARP WebGPU runtime.
|
| 33 |
+
|
| 34 |
+
## Not Intended For
|
| 35 |
+
|
| 36 |
+
- Commercial exploitation.
|
| 37 |
+
- Product development.
|
| 38 |
+
- Use in a commercial product or service.
|
| 39 |
+
- Any use outside the Apple Machine Learning Research Model License Agreement.
|
| 40 |
+
|
| 41 |
+
## License
|
| 42 |
+
|
| 43 |
+
The source code in the upstream SHARP project is covered by `LICENSE`.
|
| 44 |
+
|
| 45 |
+
The model weights and derived model artifacts in this repository are covered by
|
| 46 |
+
`LICENSE_MODEL`, the Apple Machine Learning Research Model License Agreement.
|
| 47 |
+
That license limits use, modification, derivatives, and redistribution to
|
| 48 |
+
research purposes and excludes commercial exploitation, product development, or
|
| 49 |
+
commercial product/service use.
|
| 50 |
+
|
| 51 |
+
This ONNX/WebGPU bundle is a derived artifact from the released SHARP model and
|
| 52 |
+
should be treated as a model derivative for licensing purposes.
|
| 53 |
+
|
| 54 |
+
Attribution required by `LICENSE_MODEL`:
|
| 55 |
+
|
| 56 |
+
> Apple Machine Learning Research Model is licensed under the Apple Machine
|
| 57 |
+
> Learning Research Model License Agreement.
|
| 58 |
+
|
| 59 |
+
Modifications from the upstream `apple/Sharp` release:
|
| 60 |
+
|
| 61 |
+
- Exported the PyTorch checkpoint to a staged ONNX layout for browser execution.
|
| 62 |
+
- Split execution into `stage-1` through `stage-4` for ONNX Runtime WebGPU.
|
| 63 |
+
- Applied the ONNX Runtime 1.26 compatibility export/patch that removes
|
| 64 |
+
`Cast(to=DOUBLE) -> IsInf` adapters emitted by PyTorch `nan_to_num`.
|
| 65 |
+
- Added a `manifest.json` consumed by the SHARP WebGPU runtime.
|
| 66 |
+
|
| 67 |
+
## Files
|
| 68 |
+
|
| 69 |
+
```text
|
| 70 |
+
README.md
|
| 71 |
+
LICENSE
|
| 72 |
+
LICENSE_MODEL
|
| 73 |
+
.gitattributes
|
| 74 |
+
config.json
|
| 75 |
+
manifest.json
|
| 76 |
+
sharp_stage_1.onnx
|
| 77 |
+
sharp_stage_1.onnx.data
|
| 78 |
+
sharp_stage_2.onnx
|
| 79 |
+
sharp_stage_3.onnx
|
| 80 |
+
sharp_stage_4.onnx
|
| 81 |
+
SHA256SUMS
|
| 82 |
+
```
|
| 83 |
+
|
| 84 |
+
## Browser Usage
|
| 85 |
+
|
| 86 |
+
Serve the SHARP WebGPU app and load this repository through Transformers.js:
|
| 87 |
+
|
| 88 |
+
```text
|
| 89 |
+
http://localhost:8000/sharp_webgpu.html?model=ml-sharp-webgpu
|
| 90 |
+
```
|
| 91 |
+
|
| 92 |
+
For local validation before upload, place this folder under `webgpu/models/` and
|
| 93 |
+
open:
|
| 94 |
+
|
| 95 |
+
```text
|
| 96 |
+
http://localhost:8000/sharp_webgpu.html?model=ml-sharp-webgpu&local=1&localModelPath=./models/
|
| 97 |
+
```
|
| 98 |
+
|
| 99 |
+
## Validation
|
| 100 |
+
|
| 101 |
+
This folder was prepared with:
|
| 102 |
+
|
| 103 |
+
```bash
|
| 104 |
+
./.venv/bin/python webgpu/prepare_hf_release.py --repo-id ml-sharp-webgpu
|
| 105 |
+
```
|
| 106 |
+
|
| 107 |
+
Before publishing, run:
|
| 108 |
+
|
| 109 |
+
```bash
|
| 110 |
+
./.venv/bin/python webgpu/prepare_hf_release.py \
|
| 111 |
+
--repo-id ml-sharp-webgpu \
|
| 112 |
+
--validate-only
|
| 113 |
+
```
|
| 114 |
+
|
| 115 |
+
The validation checks that all expected files are present, external ONNX data is
|
| 116 |
+
available, SHA-256 hashes match, license markers exist in this model card, and
|
| 117 |
+
`sharp_stage_1.onnx` no longer contains the ORT 1.26 double-cast export pattern.
|
| 118 |
+
|
| 119 |
+
## Citation
|
| 120 |
+
|
| 121 |
+
If you use this model, cite the upstream SHARP work:
|
| 122 |
+
|
| 123 |
+
```bibtex
|
| 124 |
+
@article{mescheder2025sharp,
|
| 125 |
+
title = {Sharp Monocular View Synthesis in Less Than a Second},
|
| 126 |
+
author = {Lars Mescheder and Wei Dong and Shiwei Li and Xuyang Bai and Marcel Santos and Peiyun Hu and Bruno Lecouat and Mingmin Zhen and Amael Delaunoy and Tian Fang and Yanghai Tsin and Stephan R. Richter and Vladlen Koltun},
|
| 127 |
+
journal = {arXiv preprint arXiv:2512.10685},
|
| 128 |
+
year = {2025},
|
| 129 |
+
url = {https://arxiv.org/abs/2512.10685},
|
| 130 |
+
}
|
| 131 |
+
```
|
SHA256SUMS
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
a2caab832a98b7c63ef34bf268fe4dcb4a461fe6e555c06ec75b8ba26bf62017 .gitattributes
|
| 2 |
+
cf9fd1ebe78d3effd9f782d053ffbed7f69b033e5260e706c0f216e0bd4675fa LICENSE
|
| 3 |
+
e177a921ef25a523c429c6916e819c769bb4942619aadd16afe0108105a2baaf LICENSE_MODEL
|
| 4 |
+
64cdf7929c3f5612061e8177604ec85be931c0c1ee30c155a696e9e6ad58f77d README.md
|
| 5 |
+
cdd18ec07c2255c7d25a9dfeb57506ad10c8a14f0136ee24fca47182d122abe5 config.json
|
| 6 |
+
19584959959a862041bdd1b88d452189cfa7d8fdce9adba399d140d46aa17ba8 manifest.json
|
| 7 |
+
04bfa467a3004b9b74af00c1c1562de41859f3c8a21fcfbb6a67b910209794fa sharp_stage_1.onnx
|
| 8 |
+
fd6df6dd6f366c379ba2329a921a92a81c643c8c2fca255903035ebc59ead536 sharp_stage_1.onnx.data
|
| 9 |
+
96110feba372fcc9e2e34b1b08e3eff505af264d1691bcd3e18c5346a710501c sharp_stage_2.onnx
|
| 10 |
+
6ceda231049ecd22090aee872eff095b42123f7ced3ffe3de309452a5b5b6ec3 sharp_stage_3.onnx
|
| 11 |
+
17a4c1e80a1b743942dd6f2f988cb714f740b602eed3a9906803b8be2184fcae sharp_stage_4.onnx
|
config.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"SharpWebGpuStage"
|
| 4 |
+
],
|
| 5 |
+
"model_type": "custom",
|
| 6 |
+
"transformers_js_model_type": "sharp-webgpu-stage"
|
| 7 |
+
}
|
manifest.json
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": 1,
|
| 3 |
+
"opset": 17,
|
| 4 |
+
"precision": "mixed",
|
| 5 |
+
"internal_resolution": 1536,
|
| 6 |
+
"output_resolution": 768,
|
| 7 |
+
"stages": [
|
| 8 |
+
{
|
| 9 |
+
"name": "stage-1",
|
| 10 |
+
"file": "sharp_stage_1.onnx",
|
| 11 |
+
"inputs": [
|
| 12 |
+
"image",
|
| 13 |
+
"disparity_factor"
|
| 14 |
+
],
|
| 15 |
+
"outputs": [
|
| 16 |
+
"depth",
|
| 17 |
+
"encoder_feature_0",
|
| 18 |
+
"encoder_feature_1",
|
| 19 |
+
"encoder_feature_2",
|
| 20 |
+
"encoder_feature_3",
|
| 21 |
+
"encoder_feature_4"
|
| 22 |
+
]
|
| 23 |
+
},
|
| 24 |
+
{
|
| 25 |
+
"name": "stage-2",
|
| 26 |
+
"file": "sharp_stage_2.onnx",
|
| 27 |
+
"inputs": [
|
| 28 |
+
"image",
|
| 29 |
+
"depth"
|
| 30 |
+
],
|
| 31 |
+
"outputs": [
|
| 32 |
+
"feature_input",
|
| 33 |
+
"base_mean_x_ndc",
|
| 34 |
+
"base_mean_y_ndc",
|
| 35 |
+
"base_mean_inverse_z_ndc",
|
| 36 |
+
"base_scales",
|
| 37 |
+
"base_quaternions",
|
| 38 |
+
"base_colors",
|
| 39 |
+
"base_opacities",
|
| 40 |
+
"global_scale"
|
| 41 |
+
]
|
| 42 |
+
},
|
| 43 |
+
{
|
| 44 |
+
"name": "stage-3",
|
| 45 |
+
"file": "sharp_stage_3.onnx",
|
| 46 |
+
"inputs": [
|
| 47 |
+
"feature_input",
|
| 48 |
+
"encoder_feature_0",
|
| 49 |
+
"encoder_feature_1",
|
| 50 |
+
"encoder_feature_2",
|
| 51 |
+
"encoder_feature_3",
|
| 52 |
+
"encoder_feature_4"
|
| 53 |
+
],
|
| 54 |
+
"outputs": [
|
| 55 |
+
"delta"
|
| 56 |
+
]
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"name": "stage-4",
|
| 60 |
+
"file": "sharp_stage_4.onnx",
|
| 61 |
+
"inputs": [
|
| 62 |
+
"delta",
|
| 63 |
+
"base_mean_x_ndc",
|
| 64 |
+
"base_mean_y_ndc",
|
| 65 |
+
"base_mean_inverse_z_ndc",
|
| 66 |
+
"base_scales",
|
| 67 |
+
"base_quaternions",
|
| 68 |
+
"base_colors",
|
| 69 |
+
"base_opacities",
|
| 70 |
+
"global_scale"
|
| 71 |
+
],
|
| 72 |
+
"outputs": [
|
| 73 |
+
"mean_vectors",
|
| 74 |
+
"singular_values",
|
| 75 |
+
"quaternions",
|
| 76 |
+
"colors",
|
| 77 |
+
"opacities"
|
| 78 |
+
]
|
| 79 |
+
}
|
| 80 |
+
],
|
| 81 |
+
"ort_compatibility_patch": {
|
| 82 |
+
"stage-1": "removed Cast(to=DOUBLE)->IsInf adapters emitted by torch.nan_to_num"
|
| 83 |
+
}
|
| 84 |
+
}
|
sharp_stage_1.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:04bfa467a3004b9b74af00c1c1562de41859f3c8a21fcfbb6a67b910209794fa
|
| 3 |
+
size 1180560
|
sharp_stage_1.onnx.data
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fd6df6dd6f366c379ba2329a921a92a81c643c8c2fca255903035ebc59ead536
|
| 3 |
+
size 1292902596
|
sharp_stage_2.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:96110feba372fcc9e2e34b1b08e3eff505af264d1691bcd3e18c5346a710501c
|
| 3 |
+
size 4735786
|
sharp_stage_3.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6ceda231049ecd22090aee872eff095b42123f7ced3ffe3de309452a5b5b6ec3
|
| 3 |
+
size 30018411
|
sharp_stage_4.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:17a4c1e80a1b743942dd6f2f988cb714f740b602eed3a9906803b8be2184fcae
|
| 3 |
+
size 29456
|