Skip to content

Commit

Permalink
Add callbacks to train function in W&B sweep (ultralytics#4742)
Browse files Browse the repository at this point in the history
* add callbacks to train function in wandb sweep

Fix following ultralytics#4688 which modified the function signature to `train`

* Cleanup

Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
  • Loading branch information
2 people authored and CesarBazanAV committed Sep 29, 2021
1 parent c0f8eb0 commit 8cb7936
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/loggers/wandb/sweep.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from train import train, parse_opt
from utils.general import increment_path
from utils.torch_utils import select_device
from utils.callbacks import Callbacks


def sweep():
Expand All @@ -26,7 +27,7 @@ def sweep():
device = select_device(opt.device, batch_size=opt.batch_size)

# train
train(hyp_dict, opt, device)
train(hyp_dict, opt, device, callbacks=Callbacks())


if __name__ == "__main__":
Expand Down

0 comments on commit 8cb7936

Please sign in to comment.