PSPNet-Keras-tensorflow icon indicating copy to clipboard operation
PSPNet-Keras-tensorflow copied to clipboard

error in pspnet.prototxt

Open jeansely opened this issue 7 years ago • 9 comments

Hello, when run weight-converter this error occur:

"caffe.LayerParameter" has no field named "bn_param".

                      i replace it with "batch_norm_param"

again occur below error: "caffe.BatchNormParameter" has no field named "slope_filler".

jeansely avatar Aug 09 '17 11:08 jeansely

Hello @jeansely . There is modified prototxt in /utils/model

Vladkryvoruchko avatar Aug 10 '17 05:08 Vladkryvoruchko

now in /utils/model the prototxt is ; bn_param { slope_filler { type: "constant" value: 1 } bias_filler { type: "constant" value: 0 } frozen: true momentum: 0.95

what are replace these lines ?

jeansely avatar Aug 10 '17 13:08 jeansely

It is from here. https://github.com/hszhao/PSPNet/blob/master/evaluation/prototxt/pspnet50_ADE20K_473.prototxt

jefequien avatar Aug 10 '17 18:08 jefequien

when run weigth -converter occur error in prototxt "line 109"

has no field named "bn_param". and "caffe.BatchNormParameter" has no field named "slope_filler".

jeansely avatar Aug 11 '17 13:08 jeansely

I hold the same problem

CuriousCat-7 avatar Dec 09 '17 06:12 CuriousCat-7

I hold the same problem too.

tangsanli5201 avatar Jan 20 '18 02:01 tangsanli5201

@CuriousCat-7 @tangsanli5201 Please use already converted h5, json weights. Links that can be found in README.md I just cannot remember what was done with this converter, so if I find out i will leave a comment in this thread

Vladkryvoruchko avatar Jan 20 '18 08:01 Vladkryvoruchko

@Vladkryvoruchko Yeah. I tried to use the already converted json weights, but it raised an error: 'bad marshal data...'., which I thought it is caused by the different version of Keras( mine is 2.1.2). And it's solved now: I generated the json file through Keras 2.1.2 and replaced the old one. It's working. Thanks!

tangsanli5201 avatar Jan 21 '18 12:01 tangsanli5201

@tangsanli5201 how did you manage to generate the json ? i have the same bad marshal data... issue

RahavLussato avatar Jul 10 '18 17:07 RahavLussato