Skip to content
Snippets Groups Projects
Commit 11710a5f authored by Stephane Chavin's avatar Stephane Chavin
Browse files

Update 2 files

- /yolov5/detect.py
- /yolov5/train.py
parent ef877f01
No related branches found
No related tags found
No related merge requests found
...@@ -98,7 +98,7 @@ def run( ...@@ -98,7 +98,7 @@ def run(
screenshot = source.lower().startswith('screen') screenshot = source.lower().startswith('screen')
if is_url and is_file: if is_url and is_file:
source = check_file(source) # download source = check_file(source) # download
if not args.name: if not name:
project_name = input('Please enter the name of your project : ') project_name = input('Please enter the name of your project : ')
else: else:
project_name = args.name project_name = args.name
......
...@@ -512,7 +512,7 @@ def main(opt, callbacks=Callbacks()): ...@@ -512,7 +512,7 @@ def main(opt, callbacks=Callbacks()):
opt.exist_ok, opt.resume = opt.resume, False # pass resume to exist_ok and disable resume opt.exist_ok, opt.resume = opt.resume, False # pass resume to exist_ok and disable resume
if opt.name == 'cfg': if opt.name == 'cfg':
opt.name = Path(opt.cfg).stem # use model.yaml as name opt.name = Path(opt.cfg).stem # use model.yaml as name
if not args.name: if not opt.name:
project_name = input('Please enter the name of your project : ') project_name = input('Please enter the name of your project : ')
else: else:
project_name = args.name project_name = args.name
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment