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
File size: 1,769 Bytes
c24db76 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 | {
"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"
}
}
|