yolov7报错解决方案
fatal: not a git repository (or any of the parent directories): .git
Traceback (most recent call last):
File "D:\pythoncode\humanpose\yolo3DPosedemo\yolov7\utils\google_utils.py", line 26, in attempt_download
assets = [x['name'] for x in response['assets']] # release assets
KeyError: 'assets'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\pythoncode\humanpose\yolo3DPosedemo\yolov7\test.py", line 319, in <module>
test(opt.data,
File "D:\pythoncode\humanpose\yolo3DPosedemo\yolov7\test.py", line 58, in test
model = attempt_load(weights, map_location=device) # load FP32 model
File "D:\pythoncode\humanpose\yolo3DPosedemo\yolov7\models\experimental.py", line 251, in attempt_load
attempt_download(w)
File "D:\pythoncode\humanpose\yolo3DPosedemo\yolov7\utils\google_utils.py", line 31, in attempt_download
tag = subprocess.check_output('git tag', shell=True).decode().split()[-1]
File "C:\Users\luckyli\anaconda3\envs\CV\lib\subprocess.py", line 424, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "C:\Users\luckyli\anaconda3\envs\CV\lib\subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'git tag' returned non-zero exit status 128.
原因:本地没有yolov7.pt文件,需要从git仓库去下载文章来源:https://www.toymoban.com/news/detail-773270.html
不想下载就直接把yolov7.pt放到本地,就不用去下载报错了,执行的时候路径一定要指定对,我就是没指定对所以报了上述错误文章来源地址https://www.toymoban.com/news/detail-773270.html
到了这里,关于raise CalledProcessError(retcode, process.args,subprocess.CalledProcessError: Command ‘git tag‘的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!