-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
read cfg file error #17
Comments
I am facing the same issue. Did you find the solution ? |
I found these two lines are probably used to configure 'Git' (but I don't really understand the details),so I comment these two lines. like this,and then it can run with no error:
…------------------ 原始邮件 ------------------
发件人: "TUMFTM/CameraRadarFusionNet" <notifications@github.com>;
发送时间: 2021年2月17日(星期三) 晚上8:47
收件人: "TUMFTM/CameraRadarFusionNet"<CameraRadarFusionNet@noreply.github.com>;
抄送: "ZT"<1195164939@qq.com>;"Author"<author@noreply.github.com>;
主题: Re: [TUMFTM/CameraRadarFusionNet] read cfg file error (#17)
I am facing the same issue. Did you find the solution ?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Thankyou, I was able to solve the git issue by commenting those lines. |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
in utils/config.py ,line 58:
commit = str(subprocess.check_output(["git", "rev-parse", "HEAD"]), 'utf-8').strip()
branch = str(subprocess.check_output(["git", "rev-parse", "--abbrev-ref", "HEAD"]).strip(), 'utf-8').strip()
error like this :
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git [...] -- [...]'
Traceback (most recent call last):
File "test_crfnet.py", line 117, in
cfg = get_config(args.config)
File "../crfnet/utils/config.py", line 59, in get_config
commit = str(subprocess.check_output(["git", "rev-parse", "HEAD"]), 'utf-8').strip()
File "/home/ZT/anaconda3/envs/Keras-Tensorflow/lib/python3.7/subprocess.py", line 411, in check_output
**kwargs).stdout
File "/home/ZT/anaconda3/envs/Keras-Tensorflow/lib/python3.7/subprocess.py", line 512, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['git', 'rev-parse', 'HEAD']' returned non-zero exit status 128.
The text was updated successfully, but these errors were encountered: