pytorch-StarGAN-VC
pytorch-StarGAN-VC copied to clipboard
RuntimeError: Assertion `cur_target >= 0 && cur_target < n_classes' failed
The number of parameters: 33428
Start training......
/usr/local/lib/python3.7/site-packages/torch/nn/modules/container.py:92: UserWarning: Implicit dimension choice for log_softmax has been deprecated. Change the call to include dim=X as an argument.
input = module(input)
Traceback (most recent call last):
File "main.py", line 91, in
system:MacOS
solver.py
cls_loss_real = CELoss(input=cls_real, target=speaker_idx_org)
# key issue: speaker_idx_or=tensor.Tensor([7,1,0,2])
I may come a little late, so just comment here for anybody else encountering this issue later on.
The original problem I guess is you are using more than 4 number of speakers. That's why there is a number 7
there in speaker_idx_org
, which is supposed to contain values ranging from 0-3 only.
To fix this, reducing the number of speakers you are using in preprocess.py
step.
I may come a little late, so just comment here for anybody else encountering this issue later on.
The original problem I guess is you are using more than 4 number of speakers. That's why there is a number
7
there inspeaker_idx_org
, which is supposed to contain values ranging from 0-3 only.To fix this, reducing the number of speakers you are using in
preprocess.py
step.
Hi, sorry, just wanted to double check, so we cannot train this model for more than 4 speakers? Not having the complete understanding of the code yet but cannot it be modified for different number of speakers?