Instructions to use zeromodels/dfine-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- 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
Upload kf_config.json with huggingface_hub
Browse files- kf_config.json +58 -0
kf_config.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"library_name": "kerasformers",
|
| 3 |
+
"kerasformers_version": "1.1.3",
|
| 4 |
+
"model_module": "kerasformers.models.dfine",
|
| 5 |
+
"model_class": "DFineDetect",
|
| 6 |
+
"variant": "dfine-small",
|
| 7 |
+
"weights": "model.weights.h5",
|
| 8 |
+
"config": {
|
| 9 |
+
"stem_channels": [
|
| 10 |
+
3,
|
| 11 |
+
16,
|
| 12 |
+
16
|
| 13 |
+
],
|
| 14 |
+
"stage_in_channels": [
|
| 15 |
+
16,
|
| 16 |
+
64,
|
| 17 |
+
256,
|
| 18 |
+
512
|
| 19 |
+
],
|
| 20 |
+
"stage_mid_channels": [
|
| 21 |
+
16,
|
| 22 |
+
32,
|
| 23 |
+
64,
|
| 24 |
+
128
|
| 25 |
+
],
|
| 26 |
+
"stage_out_channels": [
|
| 27 |
+
64,
|
| 28 |
+
256,
|
| 29 |
+
512,
|
| 30 |
+
1024
|
| 31 |
+
],
|
| 32 |
+
"stage_num_blocks": [
|
| 33 |
+
1,
|
| 34 |
+
1,
|
| 35 |
+
2,
|
| 36 |
+
1
|
| 37 |
+
],
|
| 38 |
+
"stage_numb_of_layers": [
|
| 39 |
+
3,
|
| 40 |
+
3,
|
| 41 |
+
3,
|
| 42 |
+
3
|
| 43 |
+
],
|
| 44 |
+
"use_lab": true,
|
| 45 |
+
"encoder_in_channels": [
|
| 46 |
+
256,
|
| 47 |
+
512,
|
| 48 |
+
1024
|
| 49 |
+
],
|
| 50 |
+
"decoder_num_layers": 3,
|
| 51 |
+
"decoder_n_points": [
|
| 52 |
+
3,
|
| 53 |
+
6,
|
| 54 |
+
3
|
| 55 |
+
],
|
| 56 |
+
"hidden_expansion": 0.5
|
| 57 |
+
}
|
| 58 |
+
}
|