Skip to content

Commit

Permalink
fix: switch back to monitoring DER
Browse files Browse the repository at this point in the history
  • Loading branch information
hbredin committed Feb 20, 2023
1 parent 9da0ce8 commit e3dc7d6
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions pyannote/audio/tasks/segmentation/segmentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
Expand Down

0 comments on commit e3dc7d6

Please # to comment.