RFDETRLargeExport
Python template · sinapsis_rfdetr.templates.rfdetr_export
Overview
A class that handles the export process for the RFDETRLarge trained model to ONNX format.
This class is used to configure and execute the export of a trained RFDETRLarge model to the ONNX format.
Capabilities
Capabilities: not setInstallation
Install the published package using pip or uv.
pip install sinapsis-rfdetr==1.0.0uv pip install sinapsis-rfdetr==1.0.0uv add sinapsis-rfdetr==1.0.0Configuration
Effective fields from the inspector schema, including nested Pydantic model fields.
Optional
Default: null
An instance of `RFDETRLargeConfig` containing the model parameters for initializing the RF-DETR model. If not provided, default parameters from `RFDETRLargeConfig` will be used.
Optional
Default: null
Optional
Default: true
Optional
Default: "cuda"
Optional
Default: "dinov2_windowed_base"
Optional
Default: 24
Optional
Default: 12
Optional
Default: true
Optional
Default: 3
Optional
Default: 13
Optional
Default: 384
Optional
Default: true
Optional
Default: 300
Optional
Default: 14
Optional
Default: 560
Optional
Default: 90
Optional
Default: 300
Optional
Default: 4
Optional
Default: true
Optional
Default: 4
Optional
Default: ["P3","P5"]
Optional
Default: "rf-detr-large.pth"
Optional
Default: [2,5,8,11]
Optional
Default: true
Optional
Default: false
Optional
Default: 37
A dictionary containing the export parameters for the RF-DETR model. If not specified, default parameters will be used.
Optional
Default: null
Optional
Default: "/home/ariel/.cache/sinapsis/rfdetr/output"
Configuration example
Example from the Python docstring:
agent:
name: my_test_agent
templates:
- template_name: InputTemplate
class_name: InputTemplate
attributes: {}
- template_name: RFDETRLargeExport
class_name: RFDETRLargeExport
template_input: InputTemplate
attributes:
model_params:
pretrain_weights: 'path/to/checkpoint'
export_params:
output_dir: 'path/to/save/export/model'Show schema-based configuration skeleton
templates:
- template_name: "RFDETRLargeExport"
class_name: "RFDETRLargeExport"
attributes:
model_params:
amp: true
device: "cuda"
encoder: "dinov2_windowed_base"
ca_nheads: 24
sa_nheads: 12
two_stage: true
dec_layers: 3
group_detr: 13
hidden_dim: 384
layer_norm: true
num_select: 300
patch_size: 14
resolution: 560
num_classes: 90
num_queries: 300
num_windows: 4
bbox_reparam: true
dec_n_points: 4
projector_scale: ["P3", "P5"]
pretrain_weights: "rf-detr-large.pth"
out_feature_indexes: [2, 5, 8, 11]
lite_refpoint_refine: true
gradient_checkpointing: false
positional_encoding_size: 37
export_params:
output_dir: "/home/ariel/.cache/sinapsis/rfdetr/output"
Inheritance
sinapsis_rfdetr.templates.rfdetr_export.RFDETRExportEnvironment variables
Environment definitions belong to their canonical Python modules.