|
|
@@ -138,7 +138,11 @@ class Loggers(): |
|
|
|
if self.wandb: |
|
|
|
self.wandb.log({"Results": [wandb.Image(str(f), caption=f.name) for f in files]}) |
|
|
|
# Calling wandb.log. TODO: Refactor this into WandbLogger.log_model |
|
|
|
wandb.log_artifact(str(best if best.exists() else last), type='model', |
|
|
|
name='run_' + self.wandb.wandb_run.id + '_model', |
|
|
|
aliases=['latest', 'best', 'stripped']) |
|
|
|
self.wandb.finish_run() |
|
|
|
if not self.opt.evolve: |
|
|
|
wandb.log_artifact(str(best if best.exists() else last), type='model', |
|
|
|
name='run_' + self.wandb.wandb_run.id + '_model', |
|
|
|
aliases=['latest', 'best', 'stripped']) |
|
|
|
self.wandb.finish_run() |
|
|
|
else: |
|
|
|
self.wandb.finish_run() |
|
|
|
self.wandb = WandbLogger(self.opt) |