Forums - KeyError u' when using snpe-caffe-to-dlc

1 post / 0 new
KeyError u' when using snpe-caffe-to-dlc
yanbophx
Join Date: 16 Oct 17
Posts: 17
Posted: Mon, 2018-01-01 22:16

 

Dear SNPE team,

Hope you've enjoyed a nice holiday season!

SNPE used to work well on my machine, but recently I found a new problem that snpe-caffe-to-dlc failed to produce dlc file, and I tried the example alexnet and it returned the error message as below:

-----------------

snpe-caffe-to-dlc --caffe_txt models/alexnet/caffe/deploy.prototxt  --caffe_bin models/alexnet/caffe/bvlc_alexnet.caffemodel  --dlc AlexNet.dlc

Encountered Error: u'conv1'

Stack Trace:
Traceback (most recent call last):
  File "/home/yanbo/Downloads/snpe-1.8.0/bin/x86_64-linux-clang/snpe-caffe-to-dlc", line 76, in <module>
    args.enable_strict_validation)
  File "/home/yanbo/Downloads/snpe-1.8.0/lib/python/snpe/snpe_caffe_to_dlc.py", line 1048, in convert
    self.convert_caffe_new(self.spec)
  File "/home/yanbo/Downloads/snpe-1.8.0/lib/python/snpe/snpe_caffe_to_dlc.py", line 1169, in convert_caffe_new
    self.add_conv_layer(conv_layer_seq, None, None)
  File "/home/yanbo/Downloads/snpe-1.8.0/lib/python/snpe/snpe_caffe_to_dlc.py", line 1577, in add_conv_layer
    c_weights, c_bias = self.weight_provider.get_conv_weights(layer, bias_term)
  File "/home/yanbo/Downloads/snpe-1.8.0/lib/python/snpe/snpe_caffe_to_dlc.py", line 723, in get_conv_weights
    c_weights = snpeUtils.blob2arr(self.weights_map[layer.name][0])
KeyError: u'conv1'
----------------------------------

Would you please look into this and help solve the issue? I cannot seem to find any related topics online, so looking forward to hearing from you!

Best regards,

Yanbo

 

  • Up0
  • Down0

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.