Skip to content

Commit

Permalink
add callbacks to train function in wandb sweep
Browse files Browse the repository at this point in the history
Fix following ultralytics#4688 which modified the function signature to `train`
  • Loading branch information
jveitchmichaelis committed Sep 10, 2021
1 parent 7af1b4c commit acc94d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 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,8 @@ def sweep():
device = select_device(opt.device, batch_size=opt.batch_size)

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


if __name__ == "__main__":
Expand Down

0 comments on commit acc94d9

Please sign in to comment.