Spaces:
Sleeping
Sleeping
File size: 21,165 Bytes
5aefcf4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 |
Ticket Name: PROCESSOR-SDK-TDAX: TIDL modelImportTool model compatability Query Text: Part Number: PROCESSOR-SDK-TDAX Hi I am having problems with the modelImportTool from the Vision SDK. The documentation states that the tool is compatible with both MobileNet v1 and v2 from TensorFlow Slim, when I download these two models as tarballs from TensorFlow Slim, more specifically for this thread MobileNet v1, and try them out myself they do not pass the import. I have attached the output from the importModelTool along with the configuration file for importing the model. Is the error on my part or in the modelImportTool because this should work, right? Vision SDK version 3.08. Tested with the same exact results on both Windows and Linux. tidlImportTool_output.txt =============================== TIDL import - parsing =============================== TF Model (Proto) File : C:\Users\Love\Downloads\mobilenet_v1_1.0_224\mobilenet_v1_1.0_224_frozen.pb TIDL Network File : C:\Users\Love\Downloads\mobilenet_v1_1.0_224\tidl_net_output.bin TIDL Params File : C:\Users\Love\Downloads\mobilenet_v1_1.0_224\tidl_params_output.bin TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. TIDL limitation: TensorFlow operator Identity is not suported. Import error: This TensorFlow model has unsupported operators. Please check TIDL User's Guide for supported operators. Error in sorting layers: matching layer cannot be found! Import error: This TensorFlow model's topology is not supported. Please check TIDL User's Guide for supported network topologies. TIDL limitation: Reshape layer cannot be merged with layers other than InnerProduct or AveragePooling layer! Import error: Reshape layer cannot be merged. Num of Layer Detected : 35 -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Num|TIDL Layer Name |Out Data Name |Group |#Ins |#Outs |Inbuf Ids |Outbuf Id |In NCHW |Out NCHW |MACS | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0|TIDL_DataLayer |input | 0| -1| 1| x x x x x x x x | 0 | 0 0 0 0 | 1 3 224 224 | 0 | 1|TIDL_ConvolutionLayer |MobilenetV1/MobilenetV1/Conv2d_0/Relu6 | 1| 1| 1| 0 x x x x x x x | 1 | 1 3 224 224 | 1 32 112 112 | 11640832 | 2|TIDL_ConvolutionLayer |MobilenetV1/MobilenetV1/Conv2d_1_depthwise/Relu6 | 1| 1| 1| 1 x x x x x x x | 2 | 1 32 112 112 | 1 32 112 112 | 4415488 | 3|TIDL_ConvolutionLayer |MobilenetV1/MobilenetV1/Conv2d_1_pointwise/Relu6 | 1| 1| 1| 2 x x x x x x x | 3 | 1 32 112 112 | 1 64 112 112 | 27295744 | 4|TIDL_ConvolutionLayer |MobilenetV1/MobilenetV1/Conv2d_2_depthwise/Relu6 | 1| 1| 1| 3 x x x x x x x | 4 | 1 64 112 112 | 1 64 56 56 | 2207744 | 5|TIDL_ConvolutionLayer |MobilenetV1/MobilenetV1/Conv2d_2_pointwise/Relu6 | 1| 1| 1| 4 x x x x x x x | 5 | 1 64 56 56 | 1 128 56 56 | 26492928 | 6|TIDL_ConvolutionLayer |MobilenetV1/MobilenetV1/Conv2d_3_depthwise/Relu6 | 1| 1| 1| 5 x x x x x x x | 6 | 1 128 56 56 | 1 128 56 56 | 4415488 | 7|TIDL_ConvolutionLayer |MobilenetV1/MobilenetV1/Conv2d_3_pointwise/Relu6 | 1| 1| 1| 6 x x x x x x x | 7 | 1 128 56 56 | 1 128 56 56 | 52183040 | 8|TIDL_ConvolutionLayer |MobilenetV1/MobilenetV1/Conv2d_4_depthwise/Relu6 | 1| 1| 1| 7 x x x x x x x | 8 | 1 128 56 56 | 1 128 28 28 | 1103872 | 9|TIDL_ConvolutionLayer |MobilenetV1/MobilenetV1/Conv2d_4_pointwise/Relu6 | 1| 1| 1| 8 x x x x x x x | 9 | 1 128 28 28 | 1 256 28 28 | 26091520 | 10|TIDL_ConvolutionLayer |MobilenetV1/MobilenetV1/Conv2d_5_depthwise/Relu6 | 1| 1| 1| 9 x x x x x x x | 10 | 1 256 28 28 | 1 256 28 28 | 2207744 | 11|TIDL_ConvolutionLayer |MobilenetV1/MobilenetV1/Conv2d_5_pointwise/Relu6 | 1| 1| 1| 10 x x x x x x x | 11 | 1 256 28 28 | 1 256 28 28 | 51781632 | 12|TIDL_ConvolutionLayer |MobilenetV1/MobilenetV1/Conv2d_6_depthwise/Relu6 | 1| 1| 1| 11 x x x x x x x | 12 | 1 256 28 28 | 1 256 14 14 | 551936 | 13|TIDL_ConvolutionLayer |MobilenetV1/MobilenetV1/Conv2d_6_pointwise/Relu6 | 1| 1| 1| 12 x x x x x x x | 13 | 1 256 14 14 | 1 512 14 14 | 25890816 | 14|TIDL_ConvolutionLayer |MobilenetV1/MobilenetV1/Conv2d_7_depthwise/Relu6 | 1| 1| 1| 13 x x x x x x x | 14 | 1 512 14 14 | 1 512 14 14 | 1103872 | 15|TIDL_ConvolutionLayer |MobilenetV1/MobilenetV1/Conv2d_7_pointwise/Relu6 | 1| 1| 1| 14 x x x x x x x | 15 | 1 512 14 14 | 1 512 14 14 | 51580928 | 16|TIDL_ConvolutionLayer |MobilenetV1/MobilenetV1/Conv2d_8_depthwise/Relu6 | 1| 1| 1| 15 x x x x x x x | 16 | 1 512 14 14 | 1 512 14 14 | 1103872 | 17|TIDL_ConvolutionLayer |MobilenetV1/MobilenetV1/Conv2d_8_pointwise/Relu6 | 1| 1| 1| 16 x x x x x x x | 17 | 1 512 14 14 | 1 512 14 14 | 51580928 | 18|TIDL_ConvolutionLayer |MobilenetV1/MobilenetV1/Conv2d_9_depthwise/Relu6 | 1| 1| 1| 17 x x x x x x x | 18 | 1 512 14 14 | 1 512 14 14 | 1103872 | 19|TIDL_ConvolutionLayer |MobilenetV1/MobilenetV1/Conv2d_9_pointwise/Relu6 | 1| 1| 1| 18 x x x x x x x | 19 | 1 512 14 14 | 1 512 14 14 | 51580928 | 20|TIDL_ConvolutionLayer |MobilenetV1/MobilenetV1/Conv2d_10_depthwise/Relu6 | 1| 1| 1| 19 x x x x x x x | 20 | 1 512 14 14 | 1 512 14 14 | 1103872 | 21|TIDL_ConvolutionLayer |MobilenetV1/MobilenetV1/Conv2d_10_pointwise/Relu6 | 1| 1| 1| 20 x x x x x x x | 21 | 1 512 14 14 | 1 512 14 14 | 51580928 | 22|TIDL_ConvolutionLayer |MobilenetV1/MobilenetV1/Conv2d_11_depthwise/Relu6 | 1| 1| 1| 21 x x x x x x x | 22 | 1 512 14 14 | 1 512 14 14 | 1103872 | 23|TIDL_ConvolutionLayer |MobilenetV1/MobilenetV1/Conv2d_11_pointwise/Relu6 | 1| 1| 1| 22 x x x x x x x | 23 | 1 512 14 14 | 1 512 14 14 | 51580928 | 24|TIDL_ConvolutionLayer |MobilenetV1/MobilenetV1/Conv2d_12_depthwise/Relu6 | 1| 1| 1| 23 x x x x x x x | 24 | 1 512 14 14 | 1 512 7 7 | 275968 | 25|TIDL_ConvolutionLayer |MobilenetV1/MobilenetV1/Conv2d_12_pointwise/Relu6 | 1| 1| 1| 24 x x x x x x x | 25 | 1 512 7 7 | 1 1024 7 7 | 25790464 | 26|TIDL_ConvolutionLayer |MobilenetV1/MobilenetV1/Conv2d_13_depthwise/Relu6 | 1| 1| 1| 25 x x x x x x x | 26 | 1 1024 7 7 | 1 1024 7 7 | 551936 | 27|TIDL_ConvolutionLayer |MobilenetV1/MobilenetV1/Conv2d_13_pointwise/Relu6 | 1| 1| 1| 26 x x x x x x x | 27 | 1 1024 7 7 | 1 1024 7 7 | 51480576 | 28|TIDL_PoolingLayer |MobilenetV1/Logits/AvgPool_1a/AvgPool | 1| 1| 1| 27 x x x x x x x | 28 | 1 1024 7 7 | 1 1024 1 1 | 50176 | 29|TIDL_ConvolutionLayer |MobilenetV1/Logits/Conv2d_1c_1x1/BiasAdd | 1| 1| 1| 29 x x x x x x x | 30 | 1 1024 1 1 | 1 1001 1 1 | 1026025 | 30|TIDL_FlattenLayer |MobilenetV1/Predictions/Reshape | 1| 1| 1| 30 x x x x x x x | 31 | 1 1001 1 1 | 1 1 1 1001 | 1001 | 31|TIDL_SoftMaxLayer |MobilenetV1/Predictions/Softmax | 1| 1| 1| 31 x x x x x x x | 32 | 1 1 1 1001 | 1 1001 1 1 | 1001 | 32|TIDL_ShapeLayer |MobilenetV1/Predictions/Shape | 1| 1| 1|102 x x x x x x x | 33 | 1 1001 1 1 | 1 1001 1 1 | 1001 | 33|TIDL_ReshapeLayer |MobilenetV1/Predictions/Reshape_1 | 1| 1| 1| 32 x x x x x x x | 34 | 1 1001 1 1 | 1 1001 1 1 | 1001 | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total Giga Macs : 0.5789 -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Shape Layer is not supported by TIDL and cannot be merged into any TIDL layer. Reshape Layer is not supported by TIDL and cannot be merged into any TIDL layer. Import error: This TensorFlow model has operators that are supported by TIDL only if they can be merged with TIDL layers. But these operators cannot be merged with any TIDL layer. Please check TIDL User's Guide for supported TensorFlow operators. TIDL import failed. Please check error messages. mobilenet_v1_import_model.txt randParams = 0 modelType = 1 quantizationStyle = 1 quantRoundAdd = 50 numParamBits = 8 preProcType = 0 inElementType = 1 inQuantFactor = -1 rawSampleInData = 0 numSampleInData = 1 foldBnInConv2D = 1 inWidth = 224 inHeight = 224 inNumChannels = 3 sampleInData = C:\PROCESSOR_SDK_VISION_03_08_00_00\ti_components\algorithms\REL.TIDL.01.02.00.00\modules\ti_dl\test\testvecs\input\airshow.jpg tidlStatsTool = C:\PROCESSOR_SDK_VISION_03_08_00_00\ti_components\algorithms\REL.TIDL.01.02.00.00\modules\ti_dl\utils\quantStatsTool\eve_test_dl_algo.out.exe inputNetFile = C:\Users\Love\Downloads\mobilenet_v1_1.0_224\mobilenet_v1_1.0_224_frozen.pb inputParamsFile = C:\Users\Love\Downloads\mobilenet_v1_1.0_224\mobilenet_v1_1.0_224_frozen.pb outputNetFile = C:\Users\Love\Downloads\mobilenet_v1_1.0_224\tidl_net_output.bin outputParamsFile = C:\Users\Love\Downloads\mobilenet_v1_1.0_224\tidl_params_output.bin Responses: Hi, As stated in section 3.6.5 Importing Tensorflow Models in the userguide, TIDL only accepts optimized frozen graphs. So could you please optimize your graph using "optimize_for_inference.py" and then try importing? Thanks, Praveen |