Forums - 122 - ERROR - Conversion failed: Concatenation layer requires at least two inputs.

6 posts / 0 new
Last post
122 - ERROR - Conversion failed: Concatenation layer requires at least two inputs.
zl1994
Join Date: 12 Aug 17
Posts: 8
Posted: Wed, 2017-09-13 00:44

I'm trying to convert the YOLO object detection model to dlc using snpe-tensorflow-to-dlc, but there is always an error, here is the detail:

snpe-tensorflow-to-dlc --graph ~/yolo_tensorflow-master_v2/yolo_small.meta --input_dim images 448,448,3 --dlc ~/yolo_tensorflow-master_v2/yolo_small.dlc --out_node yolo/fc_36/BiasAdd --allow_unconsumed_nodes
 
2017-09-13 15:38:32.681053: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations.
2017-09-13 15:38:32.681128: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.
2017-09-13 15:38:32.681152: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.
2017-09-13 15:38:32.681175: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use FMA instructions, but these are available on your machine and could speed up CPU computations.
Converted 54 variables to const ops.
2017-09-13 15:38:40,877 - 388 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Scope (yolo) operation(s) not consumed by converter: [u'Pad', u'Pad', u'Transpose'].
2017-09-13 15:38:41,781 - 388 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Scope (yolo/conv_2) operation(s) not consumed by converter: [u'Mul', u'Maximum'].
2017-09-13 15:38:41,799 - 388 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Scope (yolo/conv_4) operation(s) not consumed by converter: [u'Mul', u'Maximum'].
2017-09-13 15:38:41,814 - 388 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Scope (yolo/conv_6) operation(s) not consumed by converter: [u'Mul', u'Maximum'].
2017-09-13 15:38:41,836 - 388 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Scope (yolo/conv_7) operation(s) not consumed by converter: [u'Mul', u'Maximum'].
2017-09-13 15:38:41,846 - 388 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Scope (yolo/conv_8) operation(s) not consumed by converter: [u'Mul', u'Maximum'].
2017-09-13 15:38:41,882 - 388 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Scope (yolo/conv_9) operation(s) not consumed by converter: [u'Mul', u'Maximum'].
2017-09-13 15:38:41,898 - 388 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Scope (yolo/conv_11) operation(s) not consumed by converter: [u'Mul', u'Maximum'].
2017-09-13 15:38:41,932 - 388 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Scope (yolo/conv_12) operation(s) not consumed by converter: [u'Mul', u'Maximum'].
2017-09-13 15:38:41,943 - 388 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Scope (yolo/conv_13) operation(s) not consumed by converter: [u'Mul', u'Maximum'].
2017-09-13 15:38:41,978 - 388 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Scope (yolo/conv_14) operation(s) not consumed by converter: [u'Mul', u'Maximum'].
2017-09-13 15:38:41,990 - 388 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Scope (yolo/conv_15) operation(s) not consumed by converter: [u'Mul', u'Maximum'].
2017-09-13 15:38:42,028 - 388 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Scope (yolo/conv_16) operation(s) not consumed by converter: [u'Mul', u'Maximum'].
2017-09-13 15:38:42,037 - 388 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Scope (yolo/conv_17) operation(s) not consumed by converter: [u'Mul', u'Maximum'].
2017-09-13 15:38:42,071 - 388 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Scope (yolo/conv_18) operation(s) not consumed by converter: [u'Mul', u'Maximum'].
2017-09-13 15:38:42,084 - 388 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Scope (yolo/conv_19) operation(s) not consumed by converter: [u'Mul', u'Maximum'].
2017-09-13 15:38:42,160 - 388 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Scope (yolo/conv_20) operation(s) not consumed by converter: [u'Mul', u'Maximum'].
2017-09-13 15:38:42,183 - 388 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Scope (yolo/conv_22) operation(s) not consumed by converter: [u'Mul', u'Maximum'].
2017-09-13 15:38:42,263 - 388 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Scope (yolo/conv_23) operation(s) not consumed by converter: [u'Mul', u'Maximum'].
2017-09-13 15:38:42,281 - 388 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Scope (yolo/conv_24) operation(s) not consumed by converter: [u'Mul', u'Maximum'].
2017-09-13 15:38:42,362 - 388 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Scope (yolo/conv_25) operation(s) not consumed by converter: [u'Mul', u'Maximum'].
2017-09-13 15:38:42,522 - 388 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Scope (yolo/conv_26) operation(s) not consumed by converter: [u'Mul', u'Maximum'].
2017-09-13 15:38:42,681 - 388 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Scope (yolo/conv_28) operation(s) not consumed by converter: [u'Mul', u'Maximum'].
2017-09-13 15:38:42,850 - 388 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Scope (yolo/conv_29) operation(s) not consumed by converter: [u'Mul', u'Maximum'].
2017-09-13 15:38:43,013 - 388 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Scope (yolo/conv_30) operation(s) not consumed by converter: [u'Mul', u'Maximum'].
2017-09-13 15:38:43,021 - 388 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Scope (yolo/flat_32) operation(s) not consumed by converter: [u'Shape', u'Slice', u'Slice', u'Prod', u'ExpandDims'].
2017-09-13 15:38:43,454 - 388 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Scope (yolo/fc_33) operation(s) not consumed by converter: [u'Mul', u'Maximum'].
2017-09-13 15:38:43,527 - 388 - WARNING - WARNING_TF_SCOPE_OP_NOT_CONSUMED: Scope (yolo/fc_34) operation(s) not consumed by converter: [u'Mul', u'Maximum'].
2017-09-13 15:39:25,927 - 122 - ERROR - Conversion failed: Concatenation layer requires at least two inputs.
 

 

  • Up0
  • Down0
zhaoyanfei226
Join Date: 28 Sep 17
Posts: 2
Posted: Mon, 2017-10-09 19:35

Hi zl1994

Did you finally conversion success?Did you solve the problem?

Thanks

  • Up0
  • Down0
425465257
Join Date: 5 Oct 17
Posts: 1
Posted: Thu, 2017-10-19 01:42

我遇到类似的问题,你解决这个问题了吗?能分享一下你的解决方案吗?

  • Up0
  • Down0
harshiddh.mania
Join Date: 4 Jan 18
Posts: 4
Posted: Fri, 2018-02-16 10:36

Hi,

Did you resolved this error?

Please share the solution. Thanks in advance!

Thanks!

  • Up0
  • Down0
DavidC
Join Date: 9 Jun 17
Posts: 3
Posted: Thu, 2018-11-22 17:09

I have also tried to do yolo conversion and so far not successful. 

With your command line, I do have some questions:

snpe-tensorflow-to-dlc --graph ~/yolo_tensorflow-master_v2/yolo_small.meta --input_dim images 448,448,3 --dlc ~/yolo_tensorflow-master_v2/yolo_small.dlc --out_node yolo/fc_36/BiasAdd --allow_unconsumed_nodes

 

1) Should the tensorflow model file with .pb extension (graph file)?

2) For yolo model, input should be: "input" but you were using "images"

3) Also for yolo, output layer should be called "output" but you were using something different.

Not sure yoour model may be different from standdard yolo.

 

Anyway, I would post the command line i used for conversion:

snpe-tensorflow-to-dlc --graph models/usens/lgdemo_stage1_0.4.0_yolo.pb -i input 1,224,128,3 --out_node output --dlc lgdemo_stage1.dlc --allow_unconsumed_nodes

There was no error reported by the converted dlc file has only 700bytes and using snpe-dlc-info shows an empty model.

 

David

 

 

 

  • Up0
  • Down0
shenyingying25
Join Date: 14 Nov 18
Posts: 19
Posted: Tue, 2018-12-25 23:15

 hi:@DavidC

in what version yolo you use ,if you use yolov2, the input name is input,the output name is output,but i do as you suggested,it can convert success,but it has no output,have you solved this problem. i am looking for you replay,thanks a lot.

 

  • Up0
  • Down0
or Register

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.