Instructions to use zeromodels/sam_vit_large with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- KerasFormers
How to use zeromodels/sam_vit_large 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_large 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_large") - Notebooks
- Google Colab
- Kaggle
Upload folder using huggingface_hub
Browse files- README.md +18 -0
- model.weights.h5 +3 -0
README.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pipeline_tag: mask-generation
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
library_name: kerasformers
|
| 5 |
+
tags:
|
| 6 |
+
- keras
|
| 7 |
+
- kerasformers
|
| 8 |
+
- sam
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# sam_vit_large (Keras 3)
|
| 12 |
+
|
| 13 |
+
Pure-Keras 3 weights for [kerasformers](https://github.com/IMvision12/KerasFormers), mirrored from the source. License: `apache-2.0`.
|
| 14 |
+
|
| 15 |
+
```python
|
| 16 |
+
from kerasformers.models.sam import SAMPromptableSegment
|
| 17 |
+
model = SAMPromptableSegment.from_weights("sam_vit_large")
|
| 18 |
+
```
|
model.weights.h5
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:21cfcf99e139d35ecfc92ec13f8afbd3e5f34459458e4bed5f7e4592472c25b9
|
| 3 |
+
size 1250101408
|