GeorgeSeif / Semantic-Segmentation-Suite

Semantic Segmentation Suite in TensorFlow. Implement, train, and test new Semantic Segmentation models easily!
2.51k stars 880 forks source link

when I ran train.py.I have the problem:subprocess.CalledProcessError: Command '['python', 'utils/get_pretrained_checkpoints.py', '--model=ResNet101']' returned non-zero exit status 1 #205

Open sweetboxwwy opened 5 years ago

sweetboxwwy commented 5 years ago

Traceback (most recent call last): File "utils/get_pretrained_checkpoints.py", line 19, in subprocess.check_output(['wget','http://download.tensorflow.org/models/resnet_v2_101_2017_04_14.tar.gz', "-P", "models"]) File "C:\ProgramData\Anaconda3\lib\subprocess.py", line 336, in check_output *kwargs).stdout File "C:\ProgramData\Anaconda3\lib\subprocess.py", line 403, in run with Popen(popenargs, kwargs) as process: File "C:\ProgramData\Anaconda3\lib\subprocess.py", line 709, in init restore_signals, start_new_session) File "C:\ProgramData\Anaconda3\lib\subprocess.py", line 997, in _execute_child startupinfo) FileNotFoundError: [WinError 2] 系统找不到指定的文件。 Traceback (most recent call last): File "train.py", line 95, in network, init_fn = model_builder.build_model(model_name=args.model, frontend=args.frontend, net_input=net_input, num_classes=num_classes, crop_width=args.crop_width, crop_height=args.crop_height, is_training=True) File "D:\Downloads\Semantic-Segmentation-Suite-master\Semantic-Segmentation-Suite-master\builders\model_builder.py", line 47, in build_model download_checkpoints("ResNet101") File "D:\Downloads\Semantic-Segmentation-Suite-master\Semantic-Segmentation-Suite-master\builders\model_builder.py", line 28, in download_checkpoints subprocess.check_output(["python", "utils/get_pretrained_checkpoints.py", "--model=" + model_name]) File "C:\ProgramData\Anaconda3\lib\subprocess.py", line 336, in check_output kwargs).stdout File "C:\ProgramData\Anaconda3\lib\subprocess.py", line 418, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '['python', 'utils/get_pretrained_checkpoints.py', '--model=ResNet101']' returned non-zero exit status 1.

YyChen818 commented 5 years ago

I also have this problem, would you please tell me that have you solved it?

jsolves commented 5 years ago

ResNet download url changed. It was updated in one of the latest commits...

YyChen818 commented 5 years ago

It might be not. I try to copy the url to download the model, it works. So I don't think it's a problem about url.

sweetboxwwy commented 5 years ago

I also have this problem, would you please tell me that have you solved it?

i have not solve it yet

tgiles4 commented 5 years ago

I solved this problem for myself.

First, you need to install wget. I found a download here: http://gnuwin32.sourceforge.net/packages/wget.htm

Once you have wget, add it to your path variables and everything should work.

sweetboxwwy commented 5 years ago

I solved this problem for myself.

First, you need to install wget. I found a download here: http://gnuwin32.sourceforge.net/packages/wget.htm

Once you have wget, add it to your path variables and everything should work.

i can not open this url...

tgiles4 commented 5 years ago

Try searching for "wget for windows"

YyChen818 commented 5 years ago

Thank you so much !!!

c-reng commented 5 years ago

I solved this problem for myself.

First, you need to install wget. I found a download here: http://gnuwin32.sourceforge.net/packages/wget.htm

Once you have wget, add it to your path variables and everything should work.

What do you mean by add it to your path variables?

sweetboxwwy commented 5 years ago

Try searching for "wget for windows"

Thank you so much,I solved this problem,but I have the next problem: Traceback (most recent call last): File "D:/Downloads/Semantic-Segmentation-Suite-master/Semantic-Segmentation-Suite-master/train.py", line 175, in input_image = utils.load_image(train_input_names[id]) File "D:\Downloads\Semantic-Segmentation-Suite-master\Semantic-Segmentation-Suite-master\utils\utils.py", line 45, in load_image image = cv2.cvtColor(cv2.imread(path,-1), cv2.COLOR_BGR2RGB) cv2.error: OpenCV(4.1.0) C:\projects\opencv-python\opencv\modules\imgproc\src\color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor'

tgiles4 commented 5 years ago

When I get this issue, it means opencv didn't read the image

YyChen818 commented 5 years ago

I got the second problem too, have you solved it?

sweetboxwwy commented 5 years ago

I got the second problem too, have you solved it?

I use spyder to run it correctly,and I used pycharm before

YyChen818 commented 5 years ago

It may be impolite, can I have your QQ or wechat to communicate?

VincentdogLee commented 4 years ago

You can download the pretrained model by yourself and add it to "/models",it works

yucheng-china commented 4 years ago

I solved this problem for myself. First, you need to install wget. I found a download here: http://gnuwin32.sourceforge.net/packages/wget.htm Once you have wget, add it to your path variables and everything should work.

What do you mean by add it to your path variables?

Hi, have you finished it now? i have the same question as you, what is by the means of "add it to your path variable?"

yucheng-china commented 4 years ago

I also have this problem, would you please tell me that have you solved it?

have you sloved it ?

nnk2193 commented 4 years ago

I couldn't solve it. Which dataset you are using?

On Fri, 10 Jul 2020, 15:02 yucheng-china, notifications@github.com wrote:

I also have this problem, would you please tell me that have you solved it?

have you sloved it ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/GeorgeSeif/Semantic-Segmentation-Suite/issues/205#issuecomment-656583086, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALIZSFKSDWIPXE5ABDLAKNDR23N3VANCNFSM4HH7Z62A .

yucheng-china commented 4 years ago

Hi, i use CamVid, i have made it work now, but i don't know how the compare my resluts to others, which paper we can use for comparison

nnk2193 notifications@github.com 于2020年7月10日周五 下午8:58写道:

I couldn't solve it. Which dataset you are using?

On Fri, 10 Jul 2020, 15:02 yucheng-china, notifications@github.com wrote:

I also have this problem, would you please tell me that have you solved it?

have you sloved it ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub < https://github.com/GeorgeSeif/Semantic-Segmentation-Suite/issues/205#issuecomment-656583086 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/ALIZSFKSDWIPXE5ABDLAKNDR23N3VANCNFSM4HH7Z62A

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/GeorgeSeif/Semantic-Segmentation-Suite/issues/205#issuecomment-656663349, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANK6QWB7PVUI6MGBFDPNXCTR24F63ANCNFSM4HH7Z62A .

tgiles4 commented 4 years ago

I solved this problem for myself. First, you need to install wget. I found a download here: http://gnuwin32.sourceforge.net/packages/wget.htm Once you have wget, add it to your path variables and everything should work.

What do you mean by add it to your path variables?

Hi, have you finished it now? i have the same question as you, what is by the means of "add it to your path variable?"

If you are on windows, you need to download wget for windows and add it to the OS path variables in your system (Search "add to path variable on Windows")

if you are on linux, you need wget and make sure it's in your path in your bashrc configuration/etc

nnk2193 commented 4 years ago

There are many standard papers. you may find this paper useful. Regards,

-- Nikhil Ninad Kulkarni MTech(PRSD), IIRS, ISRO, Department of Space, India.

yucheng-china commented 4 years ago

I make it works now, thank your guys very much

2020年7月22日 22:26,"tgiles4" notifications@github.com写道:

I solved this problem for myself. First, you need to install wget. I found a download here: http://gnuwin32.sourceforge.net/packages/wget.htm Once you have wget, add it to your path variables and everything should work.

What do you mean by add it to your path variables?

Hi, have you finished it now? i have the same question as you, what is by the means of "add it to your path variable?"

If you are on windows, you need to download wget for windows and add it to the OS path variables in your system (Search "add to path variable on Windows")

if you are on linux, you need wget and make sure it's in your path in your bashrc configuration/etc

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/GeorgeSeif/Semantic-Segmentation-Suite/issues/205#issuecomment-662485214, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANK6QWDSLCTB6UGXUTLXZPTR43ZKNANCNFSM4HH7Z62A .