Skip to content

NameError: name 'bias_term' is not defined #163

@Mespith

Description

@Mespith

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 "", line 1, in
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions