From e3dc7d68cc60c7d4f89df005b58674aa936b0882 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20BREDIN?= Date: Mon, 20 Feb 2023 07:54:04 +0100 Subject: [PATCH] fix: switch back to monitoring DER --- .../audio/tasks/segmentation/segmentation.py | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/pyannote/audio/tasks/segmentation/segmentation.py b/pyannote/audio/tasks/segmentation/segmentation.py index 976b5d376..715cfc646 100644 --- a/pyannote/audio/tasks/segmentation/segmentation.py +++ b/pyannote/audio/tasks/segmentation/segmentation.py @@ -731,27 +731,6 @@ def validation_step(self, batch, batch_idx: int): plt.close(fig) - @property - def val_monitor(self): - """Quantity (and direction) to monitor - - Useful for model checkpointing or early stopping. - - Returns - ------- - monitor : str - Name of quantity to monitor (validation loss) - mode : {'min', 'max} - Minimize - - See also - -------- - pytorch_lightning.callbacks.ModelCheckpoint - pytorch_lightning.callbacks.EarlyStopping - """ - - return f"{self.logging_prefix}ValLoss", "min" - def main(protocol: str, subset: str = "test", model: str = "pyannote/segmentation"): """Evaluate a segmentation model"""