Instructions to use zeromodels/rtdetr-r34vd with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- KerasFormers
How to use zeromodels/rtdetr-r34vd 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/rtdetr-r34vd 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/rtdetr-r34vd") - Notebooks
- Google Colab
- Kaggle
Upload kf_preprocessor.json with huggingface_hub
Browse files- kf_preprocessor.json +20 -22
kf_preprocessor.json
CHANGED
|
@@ -4,26 +4,24 @@
|
|
| 4 |
"preprocessor_module": "kerasformers.models.rt_detr",
|
| 5 |
"preprocessor_class": "RTDETRImageProcessor",
|
| 6 |
"variant": "rtdetr-r34vd",
|
| 7 |
-
"
|
| 8 |
-
"
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
"data_format": null
|
| 28 |
-
}
|
| 29 |
}
|
|
|
|
| 4 |
"preprocessor_module": "kerasformers.models.rt_detr",
|
| 5 |
"preprocessor_class": "RTDETRImageProcessor",
|
| 6 |
"variant": "rtdetr-r34vd",
|
| 7 |
+
"size": {
|
| 8 |
+
"height": 640,
|
| 9 |
+
"width": 640
|
| 10 |
+
},
|
| 11 |
+
"resample": "bilinear",
|
| 12 |
+
"do_rescale": true,
|
| 13 |
+
"rescale_factor": 0.00392156862745098,
|
| 14 |
+
"do_normalize": false,
|
| 15 |
+
"image_mean": [
|
| 16 |
+
0.485,
|
| 17 |
+
0.456,
|
| 18 |
+
0.406
|
| 19 |
+
],
|
| 20 |
+
"image_std": [
|
| 21 |
+
0.229,
|
| 22 |
+
0.224,
|
| 23 |
+
0.225
|
| 24 |
+
],
|
| 25 |
+
"return_tensor": true,
|
| 26 |
+
"data_format": null
|
|
|
|
|
|
|
| 27 |
}
|