chengyangfu / caffe

Caffe: a fast open framework for deep learning.
http://caffe.berkeleyvision.org/
Other
169 stars 47 forks source link

global name 'DeconvBNLayer' is not defined? #17

Open jufeng123 opened 6 years ago

jufeng123 commented 6 years ago

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

Qh-chen commented 6 years ago

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

zp678 commented 6 years ago

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

lijuan123 commented 6 years ago

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

zp678 commented 6 years ago

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

RushDon commented 6 years ago

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