wkentaro / pytorch-fcn

PyTorch Implementation of Fully Convolutional Networks. (Training code to reproduce the original result is available.)
MIT License
1.74k stars 480 forks source link

Hello, I got some problems when I was training. #159

Closed dmndxld closed 3 years ago

dmndxld commented 3 years ago

I was running the code on google colab. I downloaded the dataset by "!sh ./download_dataset.sh". ##Use the command "!python ./train_fcn32s.py -g 0". And I got the problem. Here is the error sign.

fatal: not a git repository (or any parent up to mount point /content) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). Traceback (most recent call last): File "./train_fcn32s.py", line 151, in main() File "./train_fcn32s.py", line 77, in main args.git_hash = git_hash() File "./train_fcn32s.py", line 18, in git_hash ret = subprocess.check_output(shlex.split(cmd)).strip() File "/usr/lib/python3.7/subprocess.py", line 411, in check_output **kwargs).stdout File "/usr/lib/python3.7/subprocess.py", line 512, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '['git', 'log', '-n', '1', '--pretty=%h']' returned non-zero exit status 128.

Could you help me to solve it? Many thanks.