code: def __init__(
      self,
      num_queries=300,
      position_embed_type="sine",
      return_intermediate_dec=True,
      in_feats_channel=[512, 1024, 2048],
      num_feature_levels=4,
      num_encoder_points=4,
      num_decoder_points=4,
      hidden_dim=256,
      nhead=8,
      num_encoder_layers=6,
      num_decoder_layers=6,
      dim_feedforward=1024,
      dropout=0.1,
      activation="relu",
      lr_mult=0.1,
      pe_temperature=10000,
      pe_offset=-0.5,
      start_q=None,
      end_q=None,
  ):
      super(QRDeformableTransformer, self).__init__(
          num_queries=num_queries,
          position_embed_type=position_embed_type,
          return_intermediate_dec=return_intermediate_dec,
          in_feats_channel=in_feats_channel,
          num_feature_levels=num_feature_levels,
          num_encoder_points=num_encoder_points,
          num_decoder_points=num_decoder_points,
          hidden_dim=hidden_dim,
          nhead=nhead,
          num_encoder_layers=num_encoder_layers,
          num_decoder_layers=num_decoder_layers,
          dim_feedforward=dim_feedforward,
          dropout=dropout,
          activation=activation,
          lr_mult=lr_mult,
          pe_temperature=pe_temperature,
          pe_offset=pe_offset,
      )
  
      decoder_layer = DeformableTransformerDecoderLayer(
          hidden_dim,
          nhead,
          dim_feedforward,
          dropout,
          activation,
          num_feature_levels,
          num_decoder_points,
      )
      self.decoder = QRDeformableTransformerDecoder(
          decoder_layer,
          num_decoder_layers,
          start_q,
          end_q,
          return_intermediate_dec,
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import math
  import paddle
  import paddle.nn
  import paddle.nn.functional
  from paddle import ParamAttr
  from ppdet.core.workspace import register
  from ..layers import MultiHeadAttention
  from .position_encoding import PositionEmbedding
  from .utils import _get_clones, get_valid_ratio
  from ..initializer import linear_init_, constant_, xavier_uniform_, normal_
label_desc: Use image node_id 1 to create a new QRDeformableTransformer object from inherited base classes: DeformableTransformer with example: obj = QRDeformableTransformer(num_queries, position_embed_type, return_intermediate_dec, in_feats_channel, num_feature_levels, num_encoder_points, num_decoder_points, hidden_dim, nhead, num_encoder_layers, num_decoder_layers, dim_feedforward, dropout, activation, lr_mult, pe_temperature, pe_offset, start_q, end_q)