code: def __init__(
      self,
      num_classes=80,
      temperature=2.5,
      sample_num=4096,
      thresh=0.75,
  ):
      super(SupContrast, self).__init__()
      self.num_classes = num_classes
      self.temperature = temperature
      self.sample_num = sample_num
      self.thresh = thresh
  
file_path: PaddleDetection/ppdet/modeling/losses/supcontrast.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import paddle
  import paddle.nn
  import paddle.nn.functional
  import random
  from ppdet.core.workspace import register
label_desc: Use image node_id 1 to create a new SupContrast object from inherited base classes: nn with example: obj = SupContrast(num_classes, temperature, sample_num, thresh)