1
0
forked from mrq/DL-Art-School

Add wandb_step_factor argument

This commit is contained in:
James Betker 2022-01-27 19:58:58 -07:00
parent e0e36ed98c
commit 0152174c0e

View File

@ -210,7 +210,7 @@ class Trainer:
self.tb_logger.add_scalar(k, v, self.current_step)
if opt['wandb'] and self.rank <= 0:
import wandb
wandb.log(logs, step=self.current_step)
wandb.log(logs, step=int(self.current_step * opt_get(opt, ['wandb_step_factor'], 1)))
self.logger.info(message)
#### save models and training states