SAM V1,V2,V3
Collection
7 items • Updated
How to use kerasformers/sam3 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
How to use kerasformers/sam3 with Keras:
# Available backend options are: "jax", "torch", "tensorflow".
import os
os.environ["KERAS_BACKEND"] = "jax"
import keras
model = keras.saving.load_model("hf://kerasformers/sam3")
Pure-Keras 3 conversion of facebook/sam3 (SAM 3) for kerasformers.
Distributed under the SAM License (a copy is included in LICENSE; see also the source terms). This work uses the SAM Materials provided by Meta; redistribution is under the same terms.
from kerasformers.models.sam3 import SAM3Model, SAM3InstanceSegment
model = SAM3Model.from_weights("sam3_saco")
segmenter = SAM3InstanceSegment(model=model)
Base model
facebook/sam3