class_docstr: FCOSLoss of Consistency Regularization
code: def __init__(
      self,
      iou_loss_type="giou",
      cls_weight=2.0,
      reg_weight=2.0,
      iou_weight=0.5,
      hard_neg_mining_flag=True,
  ):
      super(FCOSLossCR, self).__init__()
      self.iou_loss_type = iou_loss_type
      self.cls_weight = cls_weight
      self.reg_weight = reg_weight
      self.iou_weight = iou_weight
      self.hard_neg_mining_flag = hard_neg_mining_flag
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import paddle
  import paddle.nn
  import paddle.nn.functional
  from ppdet.core.workspace import register
  from ppdet.modeling import ops
  from functools import partial
label_desc: Use image node_id 1 to create a new FCOSLossCR object from inherited base classes: FCOSLossMILC with example: obj = FCOSLossCR(iou_loss_type, cls_weight, reg_weight, iou_weight, hard_neg_mining_flag)