Skip to content

Commit

Permalink
Merge branch 'develop' into PyanNetWavLM
Browse files Browse the repository at this point in the history
  • Loading branch information
hbredin authored Sep 18, 2023
2 parents 421ba03 + 9df6944 commit 5f9211c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions pyannote/audio/core/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,12 +198,13 @@ def __example_output(
example_output: torch.Tensor,
specifications: Specifications = None,
) -> Output:
_, num_frames, dimension = example_output.shape

if specifications.resolution == Resolution.FRAME:
_, num_frames, dimension = example_output.shape
frame_duration = specifications.duration / num_frames
frames = SlidingWindow(step=frame_duration, duration=frame_duration)
else:
_, dimension = example_output.shape
num_frames = None
frames = None

return Output(
Expand Down
2 changes: 1 addition & 1 deletion pyannote/audio/tasks/segmentation/multilabel.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,4 +277,4 @@ def val_monitor(self):
pytorch_lightning.callbacks.EarlyStopping
"""

return "ValLoss", "min"
return "loss/val", "min"

0 comments on commit 5f9211c

Please sign in to comment.