Instructions to use zeromodels/sam_vit_huge with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- KerasFormers
How to use zeromodels/sam_vit_huge 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_huge 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_huge") - Notebooks
- Google Colab
- Kaggle
File size: 703 Bytes
736f330 6b13680 736f330 6b13680 ab53dd3 736f330 6b13680 736f330 | 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_huge",
"weights": "model.weights.json",
"schema_version": 2,
"weight_dtype": "float32",
"model_type": "sam",
"vision_config": {
"vision_hidden_size": 1280,
"vision_num_hidden_layers": 32,
"vision_num_attention_heads": 16,
"vision_mlp_dim": 5120,
"vision_global_attn_indexes": [
7,
15,
23,
31
],
"num_multimask_outputs": 3,
"multimask_output": true,
"enable_boxes": false,
"enable_masks": false,
"image_size": 1024
}
} |