python-dlpy: NameError: name 'bias_term' is not defined
I’m trying to import the open pose Caffe model to SAS. I have the .prototxt and .caffemodel files so I should be able to use the dlpy.Model.from_caffe_model to create a .hdf5 file, right?
Python 3.6.8 swat 1.5.1 dlpy 1.0.2
After I apply the workaround described in #120 and run the line below I get an error.
model = dlpy.Model.from_caffe_model(sess, '/mnt/c/Users/SNLJDK/Caffe/pose_deploy.prototxt', output_model_table=dict(name="body_25", caslib="casuser"), model_weights_file='/mnt/c/Users/SNLJDK/Caffe/pose_iter_584000.caffemodel')
Traceback (most recent call last): File “<stdin>”, line 1, in <module> File “/home/jaimy/anaconda3/envs/caffepy/lib/python3.6/site-packages/dlpy/network.py”, line 389, in from_caffe_model output_code = caffe_to_sas(input_network_file, model_name, network_param = model_weights_file, **kwargs) File “/home/jaimy/anaconda3/envs/caffepy/lib/python3.6/site-packages/dlpy/model_conversion/sas_caffe_parse.py”, line 190, in caffe_to_sas sas_code = caffe_convolution_layer(clayer, model_name) File “/home/jaimy/anaconda3/envs/caffepy/lib/python3.6/site-packages/dlpy/model_conversion/sas_caffe_parse.py”, line 402, in caffe_convolution_layer if (bias_term is not None): NameError: name ‘bias_term’ is not defined
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 18 (11 by maintainers)
@Mespith I am closing this issue, please feel free to re-open or open another one if you have any further questions. Thanks
We don’t support prelu only leaky relu.
Best, XQ
On Jul 19, 2019, at 1:42 PM, ethem-kinginthenorth <notifications@github.commailto:notifications@github.com> wrote:
EXTERNAL
I believe we do not support prelu in the server side, @sasxianhuhttps://github.com/sasxianhu can you please confirm this?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/sassoftware/python-dlpy/issues/163?email_source=notifications&email_token=AJC6DO42K5LGMUGYWMBOJSDQAH4ILA5CNFSM4H7HRWI2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2MJHMQ#issuecomment-513315762, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AJC6DO5SXCV6WQDUV62Z753QAH4ILANCNFSM4H7HRWIQ.
@Mespith: as @ethem-kinginthenorth noted on #120, there has not been an official release of DLPy that includes a number of fixes for Caffe model conversion. Please try cloning the repository to pick up these changes and try again. If you still have problems, please post a link to the prototxt file and caffemodel file you are using.