Instructions to use facebook/sapiens2-pointmap-1b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sapiens2
How to use facebook/sapiens2-pointmap-1b with sapiens2:
# 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
- sapiens
How to use facebook/sapiens2-pointmap-1b with sapiens:
# 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
How to use facebook/sapiens2-pointmap-1b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("depth-estimation", model="facebook/sapiens2-pointmap-1b")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, Sapiens2ForPointmapEstimation processor = AutoImageProcessor.from_pretrained("facebook/sapiens2-pointmap-1b") model = Sapiens2ForPointmapEstimation.from_pretrained("facebook/sapiens2-pointmap-1b", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update config.json and preprocessor_config.json
Browse files- config.json +60 -37
- preprocessor_config.json +5 -0
config.json
CHANGED
|
@@ -5,42 +5,65 @@
|
|
| 5 |
],
|
| 6 |
"attention_dropout": 0.0,
|
| 7 |
"drop_path_rate": 0.0,
|
| 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 |
"hidden_act": "silu",
|
| 45 |
"hidden_size": 1536,
|
| 46 |
"id2label": {
|
|
@@ -168,7 +191,7 @@
|
|
| 168 |
"stage39",
|
| 169 |
"stage40"
|
| 170 |
],
|
| 171 |
-
"transformers_version": "5.
|
| 172 |
"use_gated_mlp": true,
|
| 173 |
"use_mask_token": false,
|
| 174 |
"use_qk_norm": true,
|
|
|
|
| 5 |
],
|
| 6 |
"attention_dropout": 0.0,
|
| 7 |
"drop_path_rate": 0.0,
|
| 8 |
+
"flip_pairs": null,
|
| 9 |
+
"head_config": {
|
| 10 |
+
"_name_or_path": "",
|
| 11 |
+
"architectures": null,
|
| 12 |
+
"chunk_size_feed_forward": 0,
|
| 13 |
+
"conv_kernel_sizes": [
|
| 14 |
+
3,
|
| 15 |
+
3,
|
| 16 |
+
3
|
| 17 |
+
],
|
| 18 |
+
"conv_out_channels": [
|
| 19 |
+
64,
|
| 20 |
+
32,
|
| 21 |
+
16
|
| 22 |
+
],
|
| 23 |
+
"dtype": null,
|
| 24 |
+
"id2label": {
|
| 25 |
+
"0": "LABEL_0",
|
| 26 |
+
"1": "LABEL_1"
|
| 27 |
+
},
|
| 28 |
+
"is_encoder_decoder": false,
|
| 29 |
+
"label2id": {
|
| 30 |
+
"LABEL_0": 0,
|
| 31 |
+
"LABEL_1": 1
|
| 32 |
+
},
|
| 33 |
+
"model_type": "sapiens2_head",
|
| 34 |
+
"output_attentions": false,
|
| 35 |
+
"output_hidden_states": false,
|
| 36 |
+
"problem_type": null,
|
| 37 |
+
"return_dict": true,
|
| 38 |
+
"scale_conv_kernel_sizes": [
|
| 39 |
+
1,
|
| 40 |
+
1,
|
| 41 |
+
1
|
| 42 |
+
],
|
| 43 |
+
"scale_conv_out_channels": [
|
| 44 |
+
1536,
|
| 45 |
+
512,
|
| 46 |
+
128
|
| 47 |
+
],
|
| 48 |
+
"scale_final_hidden_sizes": [
|
| 49 |
+
512,
|
| 50 |
+
128
|
| 51 |
+
],
|
| 52 |
+
"scale_final_input_size": 6144,
|
| 53 |
+
"upsample_kernel_sizes": [
|
| 54 |
+
3,
|
| 55 |
+
3,
|
| 56 |
+
3,
|
| 57 |
+
3
|
| 58 |
+
],
|
| 59 |
+
"upsample_out_channels": [
|
| 60 |
+
1536,
|
| 61 |
+
768,
|
| 62 |
+
512,
|
| 63 |
+
256
|
| 64 |
+
],
|
| 65 |
+
"use_pixel_shuffle": null
|
| 66 |
+
},
|
| 67 |
"hidden_act": "silu",
|
| 68 |
"hidden_size": 1536,
|
| 69 |
"id2label": {
|
|
|
|
| 191 |
"stage39",
|
| 192 |
"stage40"
|
| 193 |
],
|
| 194 |
+
"transformers_version": "5.10.0.dev0",
|
| 195 |
"use_gated_mlp": true,
|
| 196 |
"use_mask_token": false,
|
| 197 |
"use_qk_norm": true,
|
preprocessor_config.json
CHANGED
|
@@ -1,4 +1,9 @@
|
|
| 1 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
"do_normalize": true,
|
| 3 |
"do_pad": true,
|
| 4 |
"do_reduce_labels": false,
|
|
|
|
| 1 |
{
|
| 2 |
+
"crop_size": {
|
| 3 |
+
"height": 224,
|
| 4 |
+
"width": 224
|
| 5 |
+
},
|
| 6 |
+
"do_center_crop": false,
|
| 7 |
"do_normalize": true,
|
| 8 |
"do_pad": true,
|
| 9 |
"do_reduce_labels": false,
|