You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "caffe2keras.py", line 49, in
main(arguments)
File "caffe2keras.py", line 35, in main
debug=args.debug)
File "/home/jzh/kk/keras/caffe/convert.py", line 44, in caffe_to_keras
tuple(input_dim[1:]), debug)
File "/home/jzh/kk/keras/caffe/convert.py", line 373, in create_model
net_node[layer_nb] = Scale(axis=axis, name=name)(input_layers)
File "/home/jzh/kk/keras/layers/normalization.py", line 85, in init
self.beta_init = initializations.get(beta_init)
NameError: global name 'initializations' is not defined
I wonder if there is something I should add cause I did not find the (../initializations.md) mentioned in normalization.py
The text was updated successfully, but these errors were encountered:
You have to make some changes in normalization.py file: self.beta_init = initializers.get(beta_init) self.gamma_init = initializers.get(gamma_init)
and don't forget to import initializers
Traceback (most recent call last):
File "caffe2keras.py", line 49, in
main(arguments)
File "caffe2keras.py", line 35, in main
debug=args.debug)
File "/home/jzh/kk/keras/caffe/convert.py", line 44, in caffe_to_keras
tuple(input_dim[1:]), debug)
File "/home/jzh/kk/keras/caffe/convert.py", line 373, in create_model
net_node[layer_nb] = Scale(axis=axis, name=name)(input_layers)
File "/home/jzh/kk/keras/layers/normalization.py", line 85, in init
self.beta_init = initializations.get(beta_init)
NameError: global name 'initializations' is not defined
I wonder if there is something I should add cause I did not find the (../initializations.md) mentioned in normalization.py
The text was updated successfully, but these errors were encountered: