Traceback (most recent call last):
File “train.py”, line 724, in
main(args)
File “train.py”, line 641, in main
val_loss = evaluate(model, criterion, criterion_st, ap, global_step,
File "/root/.pyenv/versions/3.8.2/lib/python3.8/site-packages/torch/autograd/grad_mode.py
", line 49, in decorate_no_grad
return func(*args, **kwargs)
File “train.py”, line 434, in evaluate
idx = np.random.randint(mel_input.shape[0])
UnboundLocalError: local variable ‘mel_input’ referenced before assignment
I guess this is fixed ?
yes,thank you very much.
Hi, how did you fixed the error,
I am also receiving the same error when i try to train.
> Validation
Traceback (most recent call last):
File “train.py”, line 724, in
main(args)
File “train.py”, line 642, in main
epoch)
File “/usr/local/lib/python3.6/dist-packages/torch/autograd/grad_mode.py”, line 49, in decorate_no_grad
return func(*args, **kwargs)
File “train.py”, line 434, in evaluate
idx = np.random.randint(mel_input.shape[0])
UnboundLocalError: local variable ‘mel_input’ referenced before assignment
! Run is removed from …/ljspeech-stft_params-April-20-2020_10+00AM-fab74dd