Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

local variable 'i' referenced before assignment #612

Open
fht-ht opened this issue Sep 25, 2023 · 0 comments
Open

local variable 'i' referenced before assignment #612

fht-ht opened this issue Sep 25, 2023 · 0 comments

Comments

@fht-ht
Copy link

fht-ht commented Sep 25, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant