Skip to content
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

[Bug]: Voicebank/*/*MetricGAN* torch.multinomial error #1786

Closed
anautsch opened this issue Jan 4, 2023 · 1 comment
Closed

[Bug]: Voicebank/*/*MetricGAN* torch.multinomial error #1786

anautsch opened this issue Jan 4, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@anautsch
Copy link
Collaborator

anautsch commented Jan 4, 2023

Describe the bug

While testing recipes, an error was thrown for all MetricGAN recipes. This report points to one log only, but it is alike for all three MetricGAN recipes.

RuntimeError: cannot sample n_sample > prob_dist.size(-1) samples without replacement

Expected behaviour

No error

To Reproduce

No response

Versions

No response

Relevant log output

File "speechbrain/recipes/Voicebank/enhance/MetricGAN/train.py", line 371, in train_discriminator
    self.fit(
...
  File "torch/utils/data/sampler.py", line 203, in __iter__
    rand_tensor = torch.multinomial(self.weights, self.num_samples, self.replacement, generator=self.generator)
RuntimeError: cannot sample n_sample > prob_dist.size(-1) samples without replacement

Additional context

No response

@anautsch anautsch added the bug Something isn't working label Jan 4, 2023
@pplantinga
Copy link
Collaborator

This was fixed in f053563

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants