-
-
Notifications
You must be signed in to change notification settings - Fork 758
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValueError: Expected argument task
to either be 'binary'
, 'multiclass'
or 'multilabel'
but got 1
#1242
Comments
I've met the question as you too,How did you solve it |
I'm also getting the same error on Colab, Is there any fix to this? |
I solved by downgrading torchmetrics version. Current version |
Thanks. It worked for me as well. |
So it looks like there's a breaking change on torchmetrics' API ( |
Yes, indeed. Feel free to contribute this "adaptation" via a pull request. |
I'll do it |
Thanks everyone |
EditRelated PR: #1181 TL;DRA release of minor update is enough to avoid the problem as the solution has been done already. DetailAfter some investigation to the source code, it looks like the existing code has already mitigated the problem and therefore there will be no PR. To better explain the cause of problem, we first examine the version of Pyannote that users get from pip: pyannote-audio/pyannote/audio/tasks/segmentation/mixins.py Lines 126 to 132 in 7ead17e
It's the change of the interface of AUROC's The latest code in develop branch has done similar work as that in torchmetrics to return different object depending on the type of the task. pyannote-audio/pyannote/audio/tasks/segmentation/mixins.py Lines 143 to 152 in b56add2
|
Oh! Thanks @toto6038 :-) To anyone encountering the same issue, and until this fix has been released, please install |
vad_task = VoiceActivityDetection(ami, duration=2., batch_size=128)
vad_model = PyanNet(task=vad_task, sincnet={'stride': 10})
trainer = pl.Trainer(gpus=self.gpus, max_epochs=self.max_epochs)
trainer.fit(vad_model)
The text was updated successfully, but these errors were encountered: