Skip to content

TypeError: unsupported operand type(s) for %: 'int' and 'NoneType' #23

@cculin18

Description

@cculin18

Hi,
I got the problem, I can begin trainging the code. But while run epoch=2, it show this problem and stop to train.

File "train.py", line 212, in
trainer.train()
File "train.py", line 122, in train
if epoch % self.test_interval == 0 or epoch % self.save_interval == 0:
TypeError: unsupported operand type(s) for %: 'int' and 'NoneType'

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