Mask2Former
Collection
6 items • Updated
How to use kerasformers/mask2former-swin-tiny-coco-instance 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/mask2former-swin-tiny-coco-instance 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/mask2former-swin-tiny-coco-instance")
Pure-Keras 3 weights for kerasformers, mirrored from the source. License: mit.
from kerasformers.models.mask2former import Mask2FormerUniversalSegment
model = Mask2FormerUniversalSegment.from_weights("mask2former-swin-tiny-coco-instance")