class_docstr: RT-DETR Object Detection model, as described in https://arxiv.org/abs/2304.08069.
class_docstr_tok: ["RT-DETR","Object","Detection","model",",","as","described","in","https",":","\/\/arxiv.org\/abs\/2304.08069","."]
docstr: Construct RT-DETR Object Detection model.
  
  Args:
      backbone: backbone network for feature extraction.
      neck: neck network for feature fusion.
      head: head network to decode features into detection results.
docstr_tok: ["Construct","RT-DETR","Object","Detection","model",".","Args",":","backbone",":","backbone","network","for","feature","extraction",".","neck",":","neck","network","for","feature","fusion",".","head",":","head","network","to","decode","features","into","detection","results","."]
code: def __init__(
      self,
      backbone: ResNetD | PPHGNetV2,
      neck: HybridEncoder,
      head: RTDETRHead,
  ):
      """Construct RT-DETR Object Detection model.
  
      Args:
          backbone: backbone network for feature extraction.
          neck: neck network for feature fusion.
          head: head network to decode features into detection results.
      """
      super().__init__()
      self.backbone = backbone
      self.neck = neck
      self.head = head
  
file_path: kornia/kornia/contrib/models/rt_detr/model.py
imports: from __future__ import annotations
  from dataclasses import dataclass
  from enum import Enum
  from typing import Optional
  from kornia.contrib.models.base import ModelBase
  from kornia.contrib.models.rt_detr.architecture.hgnetv2 import PPHGNetV2
  from kornia.contrib.models.rt_detr.architecture.hybrid_encoder import HybridEncoder
  from kornia.contrib.models.rt_detr.architecture.resnet_d import ResNetD
  from kornia.contrib.models.rt_detr.architecture.rtdetr_head import RTDETRHead
  from kornia.core import Tensor
label_desc: Use image node_id 1 to create a new RTDETR object from inherited base classes: ModelBase with example: obj = RTDETR(backbone, neck, head)