Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add callbacks to train function in W&B sweep #4742

Merged
merged 2 commits into from
Sep 10, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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