项目来源:开源项目GitHub:xingyizhou/CenterTrack
问题描述:
在用自己的数据集进行训练时出现如下问题:
Traceback (most recent call last):
File "main.py", line 101, in <module>
main(opt)
File "main.py", line 37, in main
logger = Logger(opt)
File "/home/user7/DroneProject/code/czn/CenterTrack-master/src/lib/logger.py", line 33, in __init__
subprocess.check_output(["git", "describe"])))
File "/home/user7/.conda/envs/CenterTrack/lib/python3.6/subprocess.py", line 356, in check_output
**kwargs).stdout
File "/home/user7/.conda/envs/CenterTrack/lib/python3.6/subprocess.py", line 438, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['git', 'describe']' returned non-zero exit status 128.
解决方式:
打开subprocess.py文件 并进入第355行,将check=True改为 check=False (如下图所示--改后结果)
参考来源:
https://blog.csdn.net/weixin_44457768/article/details/107756536?ops_request_misc=&request_id=&biz_id=102&utm_term=subprocess.CalledProcessError:&utm_medium=distribute.pc_search_result.none-task-blog-2~all~sobaiduweb~default-0-107756536.first_rank_v2_pc_rank_v29&spm=1018.2226.3001.4187