-
Notifications
You must be signed in to change notification settings - Fork 26
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
UnboundLocalError: local variable 'val_loss_epoch' referenced before assignment #2
Comments
I get the same error. Is there any progress? |
I get the same error. Is there any progress? I means how to get the sample2frame.txt & seq2sample.txt in TESTING file |
I have not noticed this problem... The script kitti_converter.py just creates TRAINING file. Maybe we have to create TESTING file by imitating the kitti_converter.py. |
yeap,I check the files, if author‘s code didn't has any trouble, we should create TESTING file, like he sets in his constructor. @Bruce-Si |
Hello, I also encountered the same problem, have you solved it? How is the testing file created? |
I have the same problem ,have you solved it? @Kemo-Huang @minho8849 |
After I assigned an initial value to "val_loss_epoch", the network can be trained, but there is another problem, the "best_model" will not be updated after the first epoch is trained. |
@Kemo-Huang No.2 “best_model.path” is not update. 对不起,我也遇到同样的问题。 |
add the following line for solution in the bottom else:
|
Any solution for best_model.path??? |
I want to train this code for dataset, following as
$ python tools/train.py --data_root /home/my_com/dataset/KITTI/ --batch_size 4
when first epoch is done, I got error
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
Can I get some solution from this problem?
Thanks.
The text was updated successfully, but these errors were encountered: