NVIDIA / tacotron2

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

local variable 'i' referenced before assignment #612

Open fht-ht opened 9 months ago

fht-ht commented 9 months 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?