NVIDIA / tacotron2

Tacotron 2 - PyTorch implementation with faster-than-realtime inference
BSD 3-Clause "New" or "Revised" License
5.11k stars 1.39k forks source link

local variable 'i' referenced before assignment #612

Open fht-ht opened 1 year ago

fht-ht commented 1 year ago

Traceback (most recent call last): File "E:/fht/translatotron/train.py", line 375, in args.warm_start, args.n_gpus, args.rank, args.group_name, hparams) File "E:/fht/translatotron/train.py", line 328, in train hparams.distributed_run, rank) File "E:/fht/translatotron/train.py", line 215, in validate val_loss = val_loss / (i + 1) UnboundLocalError: local variable 'i' referenced before assignment

How can I solve this problem?