TensorRT转化代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
891B

  1. import argparse
  2. from wandb_utils import WandbLogger
  3. WANDB_ARTIFACT_PREFIX = 'wandb-artifact://'
  4. def create_dataset_artifact(opt):
  5. logger = WandbLogger(opt, None, job_type='Dataset Creation') # TODO: return value unused
  6. if __name__ == '__main__':
  7. parser = argparse.ArgumentParser()
  8. parser.add_argument('--data', type=str, default='data/coco128.yaml', help='data.yaml path')
  9. parser.add_argument('--single-cls', action='store_true', help='train as single-class dataset')
  10. parser.add_argument('--project', type=str, default='YOLOv5', help='name of W&B Project')
  11. parser.add_argument('--entity', default=None, help='W&B entity')
  12. parser.add_argument('--name', type=str, default='log dataset', help='name of W&B run')
  13. opt = parser.parse_args()
  14. opt.resume = False # Explicitly disallow resume check for dataset upload job
  15. create_dataset_artifact(opt)