Fix wandb import issue

This commit is contained in:
James Betker 2021-06-04 23:27:15 -06:00
parent 103a88506e
commit fa908a6a15

View File

@ -270,6 +270,7 @@ class Trainer:
for ek, ev in eval_dict.items():
self.tb_logger.add_scalar(ek, ev, self.current_step)
if opt['wandb']:
import wandb
wandb.log(eval_dict)