Got CustomPyanNetModel' object has no attribute 'example_output', when using dataspeech for fine-tune parler-tts?
#2
by
boringtaskai
- opened
I'm trying to fine tune parler-tts using your google-colab
but I got error when calculate snr and reverb, using this model.
Please help
Hey, could you send more details on what you error is, the logs and how you used it ?
The error message is "AttributeError: 'PyanNet' object has no attribute 'example_output'" when creating pipeline RegressiveActivityDetectionPipeline (snr and reverb),
I found that the bug is look like in here pyannote/pyannote-audio#1620
and since brouhaha-vad is also using eniops module in the model,
class CustomActivation(nn.Module):
...
def forward(self, x: torch.Tensor):
out = list()
for mode, activation in self.activations.items():
_output = activation(x[mode])
out.append(_output)
out = torch.stack(out)
out = rearrange(out, "n b t o -> b t (n o)") # this is cause error in pyannote.audio == 3.2.0 (the requirements.txt file doesn't mention the version of pyannote.audio, the default will install the latest version, and cause error)
return out
the solution is changing the rearrange() with torch.permute(), or using pyannote.audio == 3.0.0 (but we have to downgrade all torch, cudnn, etc... to be compatible with pyannote.audio 3.0.0) π