Closed MostafaAlaviyan closed 2 years ago
@dathudeptrai
@ZDisket
@MostafaAlaviyan you need debug by yourself why this bug happened (https://github.com/TensorSpeech/TensorFlowTTS/blob/master/tensorflow_tts/trainers/base_trainer.py#L897), i don't see anything wrong :D
ok, thanks, I can fixed the error.
@MostafaAlaviyan
ok, thanks, I can fixed the error.
I have same problem
2022-05-16 08:45:26,618 (base_trainer:888) INFO: (Steps: 500) Start evaluation.
[eval]: 0it [00:00, ?it/s]
Traceback (most recent call last):
File "examples/tacotron2/train_tacotron2.py", line 528, in <module>
main()
File "examples/tacotron2/train_tacotron2.py", line 516, in main
trainer.fit(
File "/home/nurzat/miniconda3/envs/tf/lib/python3.8/site-packages/tensorflow_tts/trainers/base_trainer.py", line 1010, in fit
self.run()
File "/home/nurzat/miniconda3/envs/tf/lib/python3.8/site-packages/tensorflow_tts/trainers/base_trainer.py", line 104, in run
self._train_epoch()
File "/home/nurzat/miniconda3/envs/tf/lib/python3.8/site-packages/tensorflow_tts/trainers/base_trainer.py", line 130, in _train_epoch
self._check_eval_interval()
File "/home/nurzat/miniconda3/envs/tf/lib/python3.8/site-packages/tensorflow_tts/trainers/base_trainer.py", line 167, in _check_eval_interval
self._eval_epoch()
File "/home/nurzat/miniconda3/envs/tf/lib/python3.8/site-packages/tensorflow_tts/trainers/base_trainer.py", line 902, in _eval_epoch
f"(Steps: {self.steps}) Finished evaluation "
UnboundLocalError: local variable 'eval_steps_per_epoch' referenced before assignment
can you tell me how to fix it?
@Qarnur . please see the ''' https://github.com/TensorSpeech/TensorFlowTTS/issues/480#issuecomment-768942886 '''
hi I want to train fastspeech2 on a new dataset, I extract duration by MFA. when I start the training, after 499 epochs when the model wants to do the evaluation step the bellow error was accrued:
how can I fix the error?