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:
# !pip install -U keras tensorflow huggingface_hub # Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here; # "jax" and "torch" also work for computation once TensorFlow is installed. import os os.environ["KERAS_BACKEND"] = "tensorflow" import keras model = keras.saving.load_model("hf://keras/sam_base_sa1b") - Notebooks
- Google Colab
- Kaggle
Update README.md with new model card content
Browse files
README.md
CHANGED
|
@@ -18,7 +18,7 @@ Keras and KerasHub can be installed with:
|
|
| 18 |
|
| 19 |
```
|
| 20 |
pip install -U -q keras-Hub
|
| 21 |
-
pip install -U -q keras>3
|
| 22 |
```
|
| 23 |
|
| 24 |
Jax, TensorFlow, and Torch come preinstalled in Kaggle Notebooks. For instructions on installing them in another environment see the [Keras Getting Started](https://keras.io/getting_started/) page.
|
|
|
|
| 18 |
|
| 19 |
```
|
| 20 |
pip install -U -q keras-Hub
|
| 21 |
+
pip install -U -q keras>=3
|
| 22 |
```
|
| 23 |
|
| 24 |
Jax, TensorFlow, and Torch come preinstalled in Kaggle Notebooks. For instructions on installing them in another environment see the [Keras Getting Started](https://keras.io/getting_started/) page.
|