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

W&B: More improvements and refactoring #4205

Merged
merged 30 commits into from
Jul 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
d0d89b6
Improve docstrings and run names
AyushExel Jul 27, 2021
a283de6
default wandb login prompt with timeout
AyushExel Jul 27, 2021
33ab468
Merge branch 'ultralytics:master' into master
AyushExel Jul 27, 2021
78d1ed0
return key
AyushExel Jul 27, 2021
bba130b
Merge branch 'master' of https://github.com/AyushExel/yolov5
AyushExel Jul 27, 2021
725bd4a
Update api_key check logic
AyushExel Jul 27, 2021
bb372f5
Properly support zipped dataset feature
AyushExel Jul 28, 2021
27c06f0
update docstring
AyushExel Jul 28, 2021
3cafca4
merge master
AyushExel Jul 28, 2021
e64525a
Revert tuorial change
AyushExel Jul 28, 2021
0a67b4a
extend changes to log_dataset
AyushExel Jul 28, 2021
80eb6aa
add run name
AyushExel Jul 28, 2021
3b039be
bug fix
AyushExel Jul 28, 2021
31f04a2
bug fix
AyushExel Jul 28, 2021
2482fb3
Update comment
AyushExel Jul 28, 2021
6012e3f
fix import check
AyushExel Jul 28, 2021
66e36ef
remove unused import
AyushExel Jul 28, 2021
aa58d9e
Hardcore .yaml file extension
AyushExel Jul 28, 2021
7225c19
Merge branch 'ultralytics:master' into fix_dataset_check
AyushExel Jul 28, 2021
dfacf7b
reduce code
glenn-jocher Jul 28, 2021
3593b48
Merge branch 'ultralytics:master' into fix_dataset_check
AyushExel Jul 28, 2021
ab11132
Reformat using pycharm
AyushExel Jul 28, 2021
5d61242
Remove redundant try catch
AyushExel Jul 28, 2021
0a43ca7
More refactoring and bug fixes
AyushExel Jul 28, 2021
4830a54
merge master
AyushExel Jul 28, 2021
570381d
retry
AyushExel Jul 28, 2021
28d7cba
Reformat using pycharm
AyushExel Jul 28, 2021
c72f59f
respect LOGGERS include list
AyushExel Jul 28, 2021
23ef166
Merge branch 'fix_dataset_check' of https://github.com/AyushExel/yolo…
AyushExel Jul 28, 2021
e0e41c9
Merge branch 'ultralytics:master' into fix_dataset_check
AyushExel Jul 28, 2021
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
8 changes: 4 additions & 4 deletions utils/loggers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ def start(self):
self.tb = SummaryWriter(str(s))

# W&B
try:
assert 'wandb' in self.include and wandb
run_id = torch.load(self.weights).get('wandb_id') if self.opt.resume else None
if wandb and 'wandb' in self.include:
wandb_artifact_resume = isinstance(self.opt.resume, str) and self.opt.resume.startswith('wandb-artifact://')
run_id = torch.load(self.weights).get('wandb_id') if self.opt.resume and not wandb_artifact_resume else None
self.opt.hyp = self.hyp # add hyperparameters
self.wandb = WandbLogger(self.opt, run_id)
except:
else:
self.wandb = None

return self
Expand Down
7 changes: 4 additions & 3 deletions utils/loggers/wandb/wandb_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,12 @@ def __init__(self, opt, run_id, job_type='Training'):
self.data_dict = check_dataset(opt.data)

self.setup_training(opt)
# write data_dict to config. useful for resuming from artifacts
if not self.wandb_artifact_data_dict:
self.wandb_artifact_data_dict = self.data_dict
self.wandb_run.config.update({'data_dict': self.wandb_artifact_data_dict},
allow_val_change=True)
# write data_dict to config. useful for resuming from artifacts. Do this only when not resuming.
if not opt.resume:
self.wandb_run.config.update({'data_dict': self.wandb_artifact_data_dict},
allow_val_change=True)

if self.job_type == 'Dataset Creation':
self.data_dict = self.check_and_upload_dataset(opt)
Expand Down