Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

log_dataset.py 870 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
  1. import argparse
  2. import yaml
  3. from wandb_utils import WandbLogger
  4. WANDB_ARTIFACT_PREFIX = 'wandb-artifact://'
  5. def create_dataset_artifact(opt):
  6. with open(opt.data) as f:
  7. data = yaml.safe_load(f) # data dict
  8. logger = WandbLogger(opt, '', None, data, job_type='Dataset Creation')
  9. if __name__ == '__main__':
  10. parser = argparse.ArgumentParser()
  11. parser.add_argument('--data', type=str, default='data/coco128.yaml', help='data.yaml path')
  12. parser.add_argument('--single-cls', action='store_true', help='train as single-class dataset')
  13. parser.add_argument('--project', type=str, default='YOLOv5', help='name of W&B Project')
  14. parser.add_argument('--entity', default=None, help='W&B entity')
  15. opt = parser.parse_args()
  16. opt.resume = False # Explicitly disallow resume check for dataset upload job
  17. create_dataset_artifact(opt)
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...