class_docstr: RoI head for `Dynamic R-CNN <https://arxiv.org/abs/2004.06002>`_.
class_docstr_tok: ["RoI","head","for","`","Dynamic","R-CNN","<","https",":","\/\/arxiv.org\/abs\/2004.06002",">","`","_","."]
code: def __init__(self, **kwargs) -> None:
      super().__init__(**kwargs)
      assert isinstance(self.bbox_head.loss_bbox, SmoothL1Loss)
      # the IoU history of the past `update_iter_interval` iterations
      self.iou_history = []
      # the beta history of the past `update_iter_interval` iterations
      self.beta_history = []
  
file_path: mmdetection/mmdet/models/roi_heads/dynamic_roi_head.py
imports: from typing import List, Tuple
  import numpy
  import torch
  from torch import Tensor
  from mmdet.models.losses import SmoothL1Loss
  from mmdet.models.task_modules.samplers import SamplingResult
  from mmdet.registry import MODELS
  from mmdet.structures import SampleList
  from mmdet.structures.bbox import bbox2roi
  from mmdet.utils import InstanceList
  from ..utils.misc import unpack_gt_instances
  from .standard_roi_head import StandardRoIHead
label_desc: Use image node_id 1 to create a new DynamicRoIHead object from inherited base classes: StandardRoIHead with example: obj = DynamicRoIHead()