def _configure_meters(self, meters: MeterInterface) -> MeterInterface: meters = super()._configure_meters(meters) C = self.num_classes report_axis = list(range(1, C)) meters.register_meter( "hd", SurfaceMeter(C=C, report_axises=report_axis, metername="hausdorff")) return meters
def _configure_meters(self, meters: MeterInterface) -> MeterInterface: C = self.num_classes report_axis = list(range(1, C)) meters.register_meter("loss", AverageValueMeter()) meters.register_meter("dice", UniversalDice( C, report_axises=report_axis, )) return meters
def _configure_meters(self, meters: MeterInterface) -> MeterInterface: meters.register_meter("contrastive_loss", AverageValueMeter()) meters.register_meter("lr", AverageValueMeter()) return meters
def _register_meters(self): meters: MeterInterface = MeterInterface() meters = self._configure_meters(meters) yield meters
def _configure_meters(self, meters: MeterInterface) -> MeterInterface: meters.register_meter("reg_weight", AverageValueMeter()) meters.register_meter("iic_loss", AverageValueMeter()) meters = super()._configure_meters(meters) return meters
def _configure_meters(self, meters: MeterInterface) -> MeterInterface: meters = super()._configure_meters(meters) meters.register_meter("mi", AverageValueMeter()) meters.register_meter("individual_mis", MultipleAverageValueMeter()) return meters
def _configure_meters(self, meters: MeterInterface) -> MeterInterface: meters = super()._configure_meters(meters) meters.register_meter("uda", AverageValueMeter()) return meters
def _configure_meters(self, meters: MeterInterface) -> MeterInterface: meters.register_meter("lr", AverageValueMeter()) meters.register_meter("sup_loss", AverageValueMeter()) meters.register_meter("ds", UniversalDice(4, [1, 2, 3])) return meters