Instructions to use facebook/sapiens2-seg-1b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sapiens2
How to use facebook/sapiens2-seg-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-seg-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-seg-1b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-segmentation", model="facebook/sapiens2-seg-1b")# Load model directly from transformers import AutoImageProcessor, Sapiens2ForSemanticSegmentation processor = AutoImageProcessor.from_pretrained("facebook/sapiens2-seg-1b") model = Sapiens2ForSemanticSegmentation.from_pretrained("facebook/sapiens2-seg-1b") - Notebooks
- Google Colab
- Kaggle
Commit ·
4cf0439
1
Parent(s): dc0001a
Add HF-compatible model.safetensors, config.json, and preprocessor_config.json (#3)
Browse files- Add HF-compatible model.safetensors, config.json, and preprocessor_config.json (076bb60ec383fb66e7e6d67a8745f991a040f221)
Co-authored-by: guarin <guarin@users.noreply.huggingface.co>
- config.json +0 -2
config.json
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
{
|
| 2 |
-
"apply_layernorm": true,
|
| 3 |
"architectures": [
|
| 4 |
"Sapiens2ForSemanticSegmentation"
|
| 5 |
],
|
|
@@ -125,7 +124,6 @@
|
|
| 125 |
"LABEL_8": 8,
|
| 126 |
"LABEL_9": 9
|
| 127 |
},
|
| 128 |
-
"layer_norm_eps": 1e-05,
|
| 129 |
"layerscale_value": 1.0,
|
| 130 |
"mlp_bias": true,
|
| 131 |
"model_type": "sapiens2",
|
|
|
|
| 1 |
{
|
|
|
|
| 2 |
"architectures": [
|
| 3 |
"Sapiens2ForSemanticSegmentation"
|
| 4 |
],
|
|
|
|
| 124 |
"LABEL_8": 8,
|
| 125 |
"LABEL_9": 9
|
| 126 |
},
|
|
|
|
| 127 |
"layerscale_value": 1.0,
|
| 128 |
"mlp_bias": true,
|
| 129 |
"model_type": "sapiens2",
|