caffe icon indicating copy to clipboard operation
caffe copied to clipboard

global name 'DeconvBNLayer' is not defined?

Open jufeng123 opened this issue 7 years ago • 5 comments

When I run examples/ssd/ssd_pascal_resnet_deconv_321.py, an error is NameError: global name 'DeconvBNLayer' is not defined?

jufeng123 avatar Jan 05 '18 07:01 jufeng123

Have you solved this problem? Please tell me how to solve it if you kown. Thanks very much.

Qh-chen avatar Jan 24 '18 05:01 Qh-chen

global name 'DeconvBNLayer' is not defined?,Have you solved this problem?@jufeng123@Qh-chen

zp678 avatar Mar 24 '18 08:03 zp678

The reason is that this script dose not difine caffe/python root, just add "caffe_root=''your_path", sys.path.insert(0,caffe_root+'python') ,sys.path.append("./python") _

lijuan123 avatar Mar 29 '18 02:03 lijuan123

I tried your method but it didn't work。Do you have other methods?@lijuan123

zp678 avatar Mar 29 '18 08:03 zp678

@zp678 @Qh-chen @jufeng123 The DeconvBNLayer is defined in the model_libs.py, so you need to download the lastest caffe-ssd, you can download the branch caffe-dssd and recompile the resource code.

RushDon avatar Jun 05 '18 16:06 RushDon