def __init__(self, configer):
    super(PixelContrastLoss, self).__init__()
    self.configer = configer
    self.temperature = self.configer.get('contrast', 'temperature')
    self.base_temperature = self.configer.get('contrast', 'base_temperature')
    self.ignore_label = (- 1)
    if (self.configer.exists('loss', 'params') and ('ce_ignore_index' in self.configer.get('loss', 'params'))):
        self.ignore_label = self.configer.get('loss', 'params')['ce_ignore_index']
    self.max_samples = self.configer.get('contrast', 'max_samples')
    self.max_views = self.configer.get('contrast', 'max_views')
def __init__(self, configer):
    super(PixelContrastLoss, self).__init__()
    self.configer = configer
    self.temperature = self.configer.get('contrast', 'temperature')
    self.base_temperature = self.configer.get('contrast', 'base_temperature')
    self.ignore_label = (- 1)
    if (self.configer.exists('loss', 'params') and ('ce_ignore_index' in self.configer.get('loss', 'params'))):
        self.ignore_label = self.configer.get('loss', 'params')['ce_ignore_index']
    self.max_samples = self.configer.get('contrast', 'max_samples')
    self.max_views = self.configer.get('contrast', 'max_views')