D-FINE
Collection
5 items • Updated
How to use kerasformers/dfine-nano 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/dfine-nano 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/dfine-nano")
Pure-Keras 3 weights for kerasformers, mirrored from the GitHub release. Apache 2.0.
from kerasformers.models.dfine import DFineDetect
model = DFineDetect.from_weights("dfine-nano")