Instructions to use keras/sam_base_sa1b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- KerasHub
How to use keras/sam_base_sa1b with KerasHub:
import keras_hub # Create a ImageSegmenter model task = keras_hub.models.ImageSegmenter.from_preset("hf://keras/sam_base_sa1b")import keras_hub # Create a Backbone model unspecialized for any task backbone = keras_hub.models.Backbone.from_preset("hf://keras/sam_base_sa1b") - Keras
How to use keras/sam_base_sa1b with Keras:
# Available backend options are: "jax", "torch", "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" import keras model = keras.saving.load_model("hf://keras/sam_base_sa1b") - Notebooks
- Google Colab
- Kaggle
| { | |
| "keras_version": "3.7.0", | |
| "keras_hub_version": "0.19.0", | |
| "parameter_count": 89677388, | |
| "date_saved": "2024-12-21@22:15:04", | |
| "tasks": [ | |
| "ImageSegmenter" | |
| ] | |
| } |