Instructions to use zeromodels/sam_vit_base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- KerasFormers
How to use zeromodels/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 zeromodels/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://zeromodels/sam_vit_base") - Notebooks
- Google Colab
- Kaggle
File size: 698 Bytes
205e829 edf6ba8 205e829 edf6ba8 6e927d2 205e829 edf6ba8 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 25 26 27 28 | {
"library_name": "kerasformers",
"kerasformers_version": "1.2.1",
"model_module": "kerasformers.models.sam",
"model_class": "SAMPromptableSegment",
"variant": "sam_vit_base",
"weights": "model.weights.h5",
"schema_version": 2,
"weight_dtype": "float32",
"model_type": "sam",
"vision_config": {
"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
}
} |