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

val_loss_epoch #9

Open
P16101150 opened this issue Apr 21, 2022 · 2 comments
Open

val_loss_epoch #9

P16101150 opened this issue Apr 21, 2022 · 2 comments

Comments

@P16101150
Copy link

Traceback (most recent call last):
File "tools/train.py", line 164, in
main()
File "tools/train.py", line 157, in main
val_loader
File "/home/my_com/virtualenv/JMODT/jmodt/utils/train_utils.py", line 198, in train
prev_val_loss = val_loss_epoch

How can i solve it?

@zkp0113
Copy link

zkp0113 commented May 14, 2022

Excuse me,I meet same problems.
No.1 ”UnboundLocalError: local variable 'val_loss_epoch' referenced before assignment“;
For this problem I change some code then the problem fixed,but it comes new problem that same with this.

No.2 “best_model.path” is not update.

对不起,我也遇到同样的问题。
第1条问 “UnboundLocalError:赋值前引用的局部变量‘val_loss_epoch’”;对于这个问题,我更改了一些代码,然后问题得到了解决,但随之而来的是新问题。
第2条 “best_model.path”未更新。

@zkp0113
Copy link

zkp0113 commented May 14, 2022

Traceback (most recent call last): File "tools/train.py", line 164, in main() File "tools/train.py", line 157, in main val_loader File "/home/my_com/virtualenv/JMODT/jmodt/utils/train_utils.py", line 198, in train prev_val_loss = val_loss_epoch

How can i solve it?

Nice to meet u,can u help me to how to fix the 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

2 participants