Log eval to wandb
This commit is contained in:
parent
7d45132f60
commit
103a88506e
|
@ -19,3 +19,4 @@ orjson
|
||||||
einops
|
einops
|
||||||
gsa-pytorch
|
gsa-pytorch
|
||||||
lambda-networks
|
lambda-networks
|
||||||
|
pytorch_ssim
|
|
@ -269,6 +269,9 @@ class Trainer:
|
||||||
print("Evaluator results: ", eval_dict)
|
print("Evaluator results: ", eval_dict)
|
||||||
for ek, ev in eval_dict.items():
|
for ek, ev in eval_dict.items():
|
||||||
self.tb_logger.add_scalar(ek, ev, self.current_step)
|
self.tb_logger.add_scalar(ek, ev, self.current_step)
|
||||||
|
if opt['wandb']:
|
||||||
|
wandb.log(eval_dict)
|
||||||
|
|
||||||
|
|
||||||
def do_training(self):
|
def do_training(self):
|
||||||
self.logger.info('Start training from epoch: {:d}, iter: {:d}'.format(self.start_epoch, self.current_step))
|
self.logger.info('Start training from epoch: {:d}, iter: {:d}'.format(self.start_epoch, self.current_step))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user