You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a risk of getting ZeroDivisionError: float division by zero in TensorboardWriter.set_step() method in line: self.add_scalar('steps_per_sec', 1 / duration.total_seconds())
I get this when running example config with "tensorboard": false
The text was updated successfully, but these errors were encountered:
I get the same Zerodivisionerror, even with "tensorboard": true
Following is the error:
File "G:\NewTemplate\pytorch-template-master\train.py", line 73, in <module>
main(config)
File "G:\NewTemplate\pytorch-template-master\train.py", line 54, in main
trainer.train()
File "G:\NewTemplate\pytorch-template-master\base\base_trainer.py", line 61, in train
result = self._train_epoch(epoch)
File "G:\NewTemplate\pytorch-template-master\trainer\trainer.py", line 68, in _train_epoch
val_log = self._valid_epoch(epoch)
File "G:\NewTemplate\pytorch-template-master\trainer\trainer.py", line 91, in _valid_epoch
self.writer.set_step((epoch - 1) * len(self.valid_data_loader) + batch_idx, 'valid')
File "G:\NewTemplate\pytorch-template-master\logger\visualization.py", line 48, in set_step
self.add_scalar('steps_per_sec', 1 / duration.total_seconds())
ZeroDivisionError: float division by zero
There is a risk of getting ZeroDivisionError: float division by zero in TensorboardWriter.set_step() method in line:
self.add_scalar('steps_per_sec', 1 / duration.total_seconds())
I get this when running example config with "tensorboard": false
The text was updated successfully, but these errors were encountered: