class_docstr: Visual-lang Fusion Module.
class_docstr_tok: ["Visual-lang","Fusion","Module","."]
code: def __init__(
      self,
      in_channels: int,
      feat_channels: int,
      num_base_priors: int,
      early_fuse: bool = False,
      num_dyhead_blocks: int = 6,
      lang_model_name: str = "bert-base-uncased",
      use_dyrelu: bool = True,
      use_dyfuse: bool = True,
      use_dcn: bool = True,
      use_checkpoint: bool = False,
      **kwargs,
  ) -> None:
      super().__init__(**kwargs)
      if BertConfig is None:
          raise RuntimeError(
              "transformers is not installed, please install it by: "
              "pip install transformers."
          )
      self.in_channels = in_channels
      self.feat_channels = feat_channels
      self.num_base_priors = num_base_priors
      self.early_fuse = early_fuse
      self.num_dyhead_blocks = num_dyhead_blocks
      self.use_dyrelu = use_dyrelu
      self.use_dyfuse = use_dyfuse
      self.use_dcn = use_dcn
      self.use_checkpoint = use_checkpoint
  
      self.lang_cfg = BertConfig.from_pretrained(lang_model_name)
      self.lang_dim = self.lang_cfg.hidden_size
      self._init_layers()
  
imports: import copy
  import math
  from typing import Callable, List, Optional, Sequence, Tuple, Union
  import torch
  import torch.nn
  import torch.nn.functional
  from mmcv.cnn import Scale
  from mmcv.ops.modulated_deform_conv import ModulatedDeformConv2d
  from mmengine.config import ConfigDict
  from mmengine.model import BaseModel
  from mmengine.structures import InstanceData
  from torch import Tensor
  from mmdet.registry import MODELS
  from mmdet.structures.bbox import cat_boxes
  from mmdet.utils import InstanceList, OptInstanceList, reduce_mean
  from ..utils import BertEncoderLayer, VLFuse, filter_scores_and_topk, permute_and_flatten, select_single_mlvl, unpack_gt_instances
  from ..utils.vlfuse_helper import MAX_CLAMP_VALUE
  from .atss_head import ATSSHead
label_desc: Use image node_id 1 to create a new VLFusionModule object from inherited base classes: BaseModel with example: obj = VLFusionModule(in_channels, feat_channels, num_base_priors, early_fuse, num_dyhead_blocks, lang_model_name, use_dyrelu, use_dyfuse, use_dcn, use_checkpoint)