@@ -405,8 +405,8 @@ def train(hyp, tb_writer, opt, device):
405
405
406
406
if __name__ == '__main__' :
407
407
parser = argparse .ArgumentParser ()
408
- parser .add_argument ('--cfg' , type = str , default = 'models/yolov5x .yaml' , help = 'model.yaml path' )
409
- parser .add_argument ('--data' , type = str , default = 'data/coco128 .yaml' , help = 'data.yaml path' )
408
+ parser .add_argument ('--cfg' , type = str , default = 'models/custom_yolov5 .yaml' , help = 'model.yaml path' )
409
+ parser .add_argument ('--data' , type = str , default = 'data/custom_data .yaml' , help = 'data.yaml path' )
410
410
parser .add_argument ('--hyp' , type = str , default = '' , help = 'hyp.yaml path (optional)' )
411
411
parser .add_argument ('--epochs' , type = int , default = 300 )
412
412
parser .add_argument ('--batch-size' , type = int , default = 16 , help = "Total batch size for all gpus." )
@@ -420,7 +420,7 @@ def train(hyp, tb_writer, opt, device):
420
420
parser .add_argument ('--evolve' , action = 'store_true' , help = 'evolve hyperparameters' )
421
421
parser .add_argument ('--bucket' , type = str , default = '' , help = 'gsutil bucket' )
422
422
parser .add_argument ('--cache-images' , action = 'store_true' , help = 'cache images for faster training' )
423
- parser .add_argument ('--weights' , type = str , default = '' , help = 'initial weights path' )
423
+ parser .add_argument ('--weights' , type = str , default = 'weights\yolov5m.pt ' , help = 'initial weights path' )
424
424
parser .add_argument ('--name' , default = '' , help = 'renames results.txt to results_name.txt if supplied' )
425
425
parser .add_argument ('--device' , default = '' , help = 'cuda device, i.e. 0 or 0,1,2,3 or cpu' )
426
426
parser .add_argument ('--multi-scale' , action = 'store_true' , help = 'vary img-size +/- 50%%' )
0 commit comments