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

When using the train_ucf101.py file for model training, the model evaluation part cannot enter the loop. #34

Open
LiYe1229 opened this issue Aug 24, 2020 · 1 comment

Comments

@LiYe1229
Copy link

LiYe1229 commented Aug 24, 2020

Traceback (most recent call last):
File "train_ucf101.py", line 146, in
train_model(sym_net=net, **kwargs)
File "/PyTorch-MFNet/train_model.py", line 117, in train_model
epoch_end=end_epoch,)
File "/PyTorch-MFNet/train/model.py", line 328, in fit
self.callback_kwargs['sample_elapse'] = sum_sample_elapse / sum_sample_inst
ZeroDivisionError: float division by zero

The error content is as above. When I use the train_ucf101.py file for model training, the loop of the model evaluation part in the /train/model.py file cannot enter, resulting in the sum_sample_inst parameter being zero, and subsequent division operations report an error. I checked the loop body content and The data set reads part of the code and found that all variables have corresponding values. How can I modify the code to make the error disappear?

@liuhui0401
Copy link

I think you should check out your evaluation dataloader. It may be empty.

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