Instructions to use zeromodels/rfdetr-medium with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- KerasFormers
How to use zeromodels/rfdetr-medium 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/rfdetr-medium 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/rfdetr-medium") - Notebooks
- Google Colab
- Kaggle
File size: 1,035 Bytes
40718be 5d8a913 40718be 5d8a913 214f65c 8ad2dce 5d8a913 40718be | 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 | {
"library_name": "kerasformers",
"kerasformers_version": "1.2.1",
"model_module": "kerasformers.models.rf_detr",
"model_class": "RFDETRDetect",
"variant": "rfdetr-medium",
"weights": "model.weights.h5",
"schema_version": 2,
"weight_dtype": "float32",
"model_type": "rf_detr",
"vision_config": {
"hidden_dim": 256,
"backbone_hidden_size": 384,
"backbone_num_heads": 6,
"backbone_num_layers": 12,
"backbone_mlp_ratio": 4,
"backbone_use_swiglu": false,
"num_register_tokens": 0,
"out_feature_indexes": [
3,
6,
9,
12
],
"patch_size": 16,
"num_windows": 2,
"positional_encoding_size": 36,
"resolution": 576,
"dec_layers": 4,
"sa_nheads": 8,
"ca_nheads": 16,
"dec_n_points": 2,
"num_queries": 300,
"num_classes": 91,
"two_stage": true,
"bbox_reparam": true,
"lite_refpoint_refine": true,
"group_detr": 13,
"dim_feedforward": 2048,
"image_size": null
}
} |