Instructions to use needle-tools/Sharp-webgpu with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Sharp
How to use needle-tools/Sharp-webgpu with Sharp:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Transformers.js
How to use needle-tools/Sharp-webgpu with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('image-to-3d', 'needle-tools/Sharp-webgpu'); - Notebooks
- Google Colab
- Kaggle
| { | |
| "version": 1, | |
| "opset": 17, | |
| "precision": "mixed", | |
| "internal_resolution": 1536, | |
| "output_resolution": 768, | |
| "stages": [ | |
| { | |
| "name": "stage-1", | |
| "file": "sharp_stage_1.onnx", | |
| "inputs": [ | |
| "image", | |
| "disparity_factor" | |
| ], | |
| "outputs": [ | |
| "depth", | |
| "encoder_feature_0", | |
| "encoder_feature_1", | |
| "encoder_feature_2", | |
| "encoder_feature_3", | |
| "encoder_feature_4" | |
| ] | |
| }, | |
| { | |
| "name": "stage-2", | |
| "file": "sharp_stage_2.onnx", | |
| "inputs": [ | |
| "image", | |
| "depth" | |
| ], | |
| "outputs": [ | |
| "feature_input", | |
| "base_mean_x_ndc", | |
| "base_mean_y_ndc", | |
| "base_mean_inverse_z_ndc", | |
| "base_scales", | |
| "base_quaternions", | |
| "base_colors", | |
| "base_opacities", | |
| "global_scale" | |
| ] | |
| }, | |
| { | |
| "name": "stage-3", | |
| "file": "sharp_stage_3.onnx", | |
| "inputs": [ | |
| "feature_input", | |
| "encoder_feature_0", | |
| "encoder_feature_1", | |
| "encoder_feature_2", | |
| "encoder_feature_3", | |
| "encoder_feature_4" | |
| ], | |
| "outputs": [ | |
| "delta" | |
| ] | |
| }, | |
| { | |
| "name": "stage-4", | |
| "file": "sharp_stage_4.onnx", | |
| "inputs": [ | |
| "delta", | |
| "base_mean_x_ndc", | |
| "base_mean_y_ndc", | |
| "base_mean_inverse_z_ndc", | |
| "base_scales", | |
| "base_quaternions", | |
| "base_colors", | |
| "base_opacities", | |
| "global_scale" | |
| ], | |
| "outputs": [ | |
| "mean_vectors", | |
| "singular_values", | |
| "quaternions", | |
| "colors", | |
| "opacities" | |
| ] | |
| } | |
| ], | |
| "ort_compatibility_patch": { | |
| "stage-1": "removed Cast(to=DOUBLE)->IsInf adapters emitted by torch.nan_to_num" | |
| } | |
| } | |