Skip to content

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

@LiYe1229

Description

@LiYe1229

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions