赞
踩
在用自己训练好的权重进行test时,出现
- Traceback (most recent call last):
- File "/home/wjh/learning/yolov7/test.py", line 319, in <module>
- test(opt.data,
- File "/home/wjh/learning/yolov7/test.py", line 58, in test
- model = attempt_load(weights, map_location=device) # load FP32 model
- File "/home/wjh/learning/yolov7/models/experimental.py", line 251, in attempt_load
- attempt_download(w)
- File "/home/wjh/learning/yolov7/utils/google_utils.py", line 31, in attempt_download
- tag = subprocess.check_output('git tag', shell=True).decode().split()[-1]
- File "/home/wjh/.conda/envs/yolov7/lib/python3.9/subprocess.py", line 424, in check_output
- return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
- File "/home/wjh/.conda/envs/yolov7/lib/python3.9/subprocess.py", line 528, in run
- raise CalledProcessError(retcode, process.args,
- subprocess.CalledProcessError: Command 'git tag' returned non-zero exit status 128.
尝试过将subprocess.py文件中的check换为Fasle但是并没有作用,经过排除发现,存储权重的文件夹路径中存在大写字母,导致不能查找到正确的权重文件,导致程序需要自动翻墙去官网下载权重,也就导致最后报错。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。