Instructions to use zeromodels/dfine-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- KerasFormers
How to use zeromodels/dfine-small 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/dfine-small 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/dfine-small") - Notebooks
- Google Colab
- Kaggle
File size: 1,361 Bytes
a4b800d 0e29aa3 a4b800d 0e29aa3 1e0de13 69b8dca 0e29aa3 a4b800d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 | {
"library_name": "kerasformers",
"kerasformers_version": "1.2.1",
"model_module": "kerasformers.models.dfine",
"model_class": "DFineDetect",
"variant": "dfine-small",
"weights": "model.weights.h5",
"schema_version": 2,
"weight_dtype": "float32",
"model_type": "d_fine",
"vision_config": {
"stem_channels": [
3,
16,
16
],
"stage_in_channels": [
16,
64,
256,
512
],
"stage_mid_channels": [
16,
32,
64,
128
],
"stage_out_channels": [
64,
256,
512,
1024
],
"stage_num_blocks": [
1,
1,
2,
1
],
"stage_numb_of_layers": [
3,
3,
3,
3
],
"use_lab": true,
"encoder_in_channels": [
256,
512,
1024
],
"encoder_hidden_dim": 256,
"encoder_ffn_dim": 1024,
"encode_proj_layers": [
2
],
"hidden_expansion": 0.5,
"ccfm_num_blocks": 1,
"hidden_dim": 256,
"decoder_num_layers": 3,
"decoder_ffn_dim": 1024,
"decoder_n_points": [
3,
6,
3
],
"num_feature_levels": 3,
"feat_strides": [
8,
16,
32
],
"num_classes": 80,
"num_queries": 300,
"image_size": 640
}
} |