xialuxi / yolov5-car-plate

基于yolov5的车牌检测,包含车牌角点检测
GNU General Public License v3.0
152 stars 40 forks source link

关于train.py的问题 #15

Closed tansen87 closed 4 months ago

tansen87 commented 2 years ago

你好,我在用您的代码运行train.py时,总是提醒我Dataset not found,我找到了那一行代码,发现它不会自动下载,每次运行到这里if s and len(s): ,就会raise exception。可以麻烦你答复一下吗? if not all(x.exists() for x in val): print('\nWARNING: Dataset not found, nonexistent paths: %s' % [str(x) for x in val if not x.exists()]) if s and len(s): # download script print('Downloading %s ...' % s) if s.startswith('http') and s.endswith('.zip'): # URL f = Path(s).name # filename torch.hub.download_url_to_file(s, f) r = os.system('unzip -q %s -d ../ && rm %s' % (f, f)) # unzip else: # bash script r = os.system(s) print('Dataset autodownload %s\n' % ('success' if r == 0 else 'failure')) # analyze return value else: raise Exception('Dataset not found.')

tansen87 commented 2 years ago

你好,可以分享一下数据集吗