Semantic-Segmentation-Suite icon indicating copy to clipboard operation
Semantic-Segmentation-Suite copied to clipboard

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

Open sweetboxwwy opened this issue 5 years ago • 22 comments

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.

sweetboxwwy avatar Apr 24 '19 02:04 sweetboxwwy

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

YyChen818 avatar Apr 25 '19 04:04 YyChen818

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

jsolves avatar Apr 25 '19 10:04 jsolves

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.

YyChen818 avatar Apr 25 '19 13:04 YyChen818

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

i have not solve it yet

sweetboxwwy avatar Apr 26 '19 02:04 sweetboxwwy

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.

tgiles4 avatar Apr 29 '19 08:04 tgiles4

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...

sweetboxwwy avatar Apr 29 '19 09:04 sweetboxwwy

Try searching for "wget for windows"

tgiles4 avatar Apr 29 '19 09:04 tgiles4

Thank you so much !!!

YyChen818 avatar May 01 '19 02:05 YyChen818

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?

Charanrenganathan avatar May 01 '19 10:05 Charanrenganathan

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'

sweetboxwwy avatar May 05 '19 02:05 sweetboxwwy

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

tgiles4 avatar May 06 '19 23:05 tgiles4

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

YyChen818 avatar May 07 '19 14:05 YyChen818

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

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

sweetboxwwy avatar May 10 '19 00:05 sweetboxwwy

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

YyChen818 avatar May 10 '19 02:05 YyChen818

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

VincentdogLee avatar Nov 17 '19 13:11 VincentdogLee

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 avatar Jul 10 '20 05:07 yucheng-china

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

have you sloved it ?

yucheng-china avatar Jul 10 '20 09:07 yucheng-china

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

On Fri, 10 Jul 2020, 15:02 yucheng-china, [email protected] 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 .

nnk2193 avatar Jul 10 '20 12:07 nnk2193

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 [email protected] 于2020年7月10日周五 下午8:58写道:

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

On Fri, 10 Jul 2020, 15:02 yucheng-china, [email protected] 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 .

yucheng-china avatar Jul 22 '20 13:07 yucheng-china

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

tgiles4 avatar Jul 22 '20 14:07 tgiles4

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

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

nnk2193 avatar Jul 23 '20 07:07 nnk2193

I make it works now, thank your guys very much

2020年7月22日 22:26,"tgiles4" [email protected]写道:

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 .

yucheng-china avatar Jul 23 '20 16:07 yucheng-china