Skip to content

Commit

Permalink
Update test_reproducibility.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hbredin committed Jul 1, 2022
1 parent 7dc6296 commit 158e809
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/tasks/test_reproducibility.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import torch

from pyannote.audio.models.segmentation.debug import SimpleSegmentationModel
from pyannote.audio.tasks import MultilabelDetection, VoiceActivityDetection
from pyannote.audio.tasks import MultiLabelSegmentation, VoiceActivityDetection
from pyannote.database import FileFinder, get_protocol


Expand Down Expand Up @@ -32,7 +32,7 @@ def test_seeding_ensures_data_loaders():
"Setting a global seed for the dataloaders ensures that we get data back in the same order"
pl.seed_everything(1)

for task in [VoiceActivityDetection, MultilabelDetection]:
for task in [VoiceActivityDetection, MultiLabelSegmentation]:
protocol, vad = setup_tasks(task)
dl = create_dl(SimpleSegmentationModel, vad)
last5a = get_next5(dl)
Expand All @@ -48,7 +48,7 @@ def test_seeding_ensures_data_loaders():
def test_different_seeds():
"Changing the global seed will change the order of the data that loads"

for task in [VoiceActivityDetection, MultilabelDetection]:
for task in [VoiceActivityDetection, MultiLabelSegmentation]:
protocol, vad = setup_tasks(task)
pl.seed_everything(4)
dl = create_dl(SimpleSegmentationModel, vad)
Expand Down

0 comments on commit 158e809

Please sign in to comment.