Instructions to use kerasformers/sam_vit_base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- KerasFormers
How to use kerasformers/sam_vit_base with KerasFormers:
# 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
- Keras
How to use kerasformers/sam_vit_base with Keras:
# Available backend options are: "jax", "torch", "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" import keras model = keras.saving.load_model("hf://kerasformers/sam_vit_base") - Notebooks
- Google Colab
- Kaggle
File size: 587 Bytes
205e829 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | {
"library_name": "kerasformers",
"kerasformers_version": "1.1.3",
"model_module": "kerasformers.models.sam",
"model_class": "SAMPromptableSegment",
"variant": "sam_vit_base",
"weights": "model.weights.h5",
"model_type": "sam",
"vision_hidden_size": 768,
"vision_num_hidden_layers": 12,
"vision_num_attention_heads": 12,
"vision_mlp_dim": 3072,
"vision_global_attn_indexes": [
2,
5,
8,
11
],
"num_multimask_outputs": 3,
"multimask_output": true,
"enable_boxes": false,
"enable_masks": false,
"image_size": 1024
} |