Hi,
I am trying to convert an ONNX model with snpe-onnx-to-dlc tool. The tools states at the end that the conversion completes successfully but the DLC model is nearly empty (1KB) whereas the onnx file is about 200MB and i have a segmentation fault when trying to visualize the DLC model with snpe-dlc-viewer.
Here is my configuration:
snpe v 1.42.0.2226
onnx v 1.3.0
protobuff v 3.13.0
python v 3.5.6
Here is the command line i used:
snpe-onnx-to-dlc --input_network models/Pix2Pix_GIN_no_patch.onnx --input_dim 'input' 1,3,256,256 --out_node 'whiteBalanced' --output_path models/Pix2Pix_GIN_no_patch.dlc --debug
2020-09-22 15:35:54,917 - 141 - DEBUG - Added OpNode with name decoder.convBlocks.0.convLayer.weight, in_names [], out_names ['decoder.convBlocks.0.convLayer.weight']2020-09-22 15:35:54,917 - 148 - DEBUG_1 - Added buffer named decoder.convBlocks.0.convLayer.weight of shape [512, 512, 4, 4]2020-09-22 15:35:54,917 - 141 - DEBUG - Added OpNode with name decoder.convBlocks.0.normalization.GNLayer.bias, in_names [], out_names ['decoder.convBlocks.0.normalization.GNLayer.bias']2020-09-22 15:35:54,917 - 148 - DEBUG_1 - Added buffer named decoder.convBlocks.0.normalization.GNLayer.bias of shape [512]2020-09-22 15:35:54,917 - 141 - DEBUG - Added OpNode with name decoder.convBlocks.0.normalization.GNLayer.weight, in_names [], out_names ['decoder.convBlocks.0.normalization.GNLayer.weight']2020-09-22 15:35:54,917 - 148 - DEBUG_1 - Added buffer named decoder.convBlocks.0.normalization.GNLayer.weight of shape [512]2020-09-22 15:35:54,928 - 141 - DEBUG - Added OpNode with name decoder.convBlocks.1.convLayer.weight, in_names [], out_names ['decoder.convBlocks.1.convLayer.weight']2020-09-22 15:35:54,929 - 148 - DEBUG_1 - Added buffer named decoder.convBlocks.1.convLayer.weight of shape [1024, 512, 4, 4]2020-09-22 15:35:54,929 - 141 - DEBUG - Added OpNode with name decoder.convBlocks.1.normalization.GNLayer.bias, in_names [], out_names ['decoder.convBlocks.1.normalization.GNLayer.bias']2020-09-22 15:35:54,929 - 148 - DEBUG_1 - Added buffer named decoder.convBlocks.1.normalization.GNLayer.bias of shape [512]2020-09-22 15:35:54,929 - 141 - DEBUG - Added OpNode with name decoder.convBlocks.1.normalization.GNLayer.weight, in_names [], out_names ['decoder.convBlocks.1.normalization.GNLayer.weight']2020-09-22 15:35:54,929 - 148 - DEBUG_1 - Added buffer named decoder.convBlocks.1.normalization.GNLayer.weight of shape [512]2020-09-22 15:35:54,941 - 141 - DEBUG - Added OpNode with name decoder.convBlocks.2.convLayer.weight, in_names [], out_names ['decoder.convBlocks.2.convLayer.weight']2020-09-22 15:35:54,941 - 148 - DEBUG_1 - Added buffer named decoder.convBlocks.2.convLayer.weight of shape [1024, 512, 4, 4]2020-09-22 15:35:54,941 - 141 - DEBUG - Added OpNode with name decoder.convBlocks.2.normalization.GNLayer.bias, in_names [], out_names ['decoder.convBlocks.2.normalization.GNLayer.bias']2020-09-22 15:35:54,941 - 148 - DEBUG_1 - Added buffer named decoder.convBlocks.2.normalization.GNLayer.bias of shape [512]2020-09-22 15:35:54,941 - 141 - DEBUG - Added OpNode with name decoder.convBlocks.2.normalization.GNLayer.weight, in_names [], out_names ['decoder.convBlocks.2.normalization.GNLayer.weight']2020-09-22 15:35:54,942 - 148 - DEBUG_1 - Added buffer named decoder.convBlocks.2.normalization.GNLayer.weight of shape [512]2020-09-22 15:35:54,952 - 141 - DEBUG - Added OpNode with name decoder.convBlocks.3.convLayer.weight, in_names [], out_names ['decoder.convBlocks.3.convLayer.weight']2020-09-22 15:35:54,952 - 148 - DEBUG_1 - Added buffer named decoder.convBlocks.3.convLayer.weight of shape [1024, 512, 4, 4]2020-09-22 15:35:54,952 - 141 - DEBUG - Added OpNode with name decoder.convBlocks.3.normalization.GNLayer.bias, in_names [], out_names ['decoder.convBlocks.3.normalization.GNLayer.bias']2020-09-22 15:35:54,952 - 148 - DEBUG_1 - Added buffer named decoder.convBlocks.3.normalization.GNLayer.bias of shape [512]2020-09-22 15:35:54,952 - 141 - DEBUG - Added OpNode with name decoder.convBlocks.3.normalization.GNLayer.weight, in_names [], out_names ['decoder.convBlocks.3.normalization.GNLayer.weight']2020-09-22 15:35:54,952 - 148 - DEBUG_1 - Added buffer named decoder.convBlocks.3.normalization.GNLayer.weight of shape [512]2020-09-22 15:35:54,958 - 141 - DEBUG - Added OpNode with name decoder.convBlocks.4.convLayer.weight, in_names [], out_names ['decoder.convBlocks.4.convLayer.weight']2020-09-22 15:35:54,958 - 148 - DEBUG_1 - Added buffer named decoder.convBlocks.4.convLayer.weight of shape [1024, 256, 4, 4]2020-09-22 15:35:54,958 - 141 - DEBUG - Added OpNode with name decoder.convBlocks.4.normalization.GNLayer.bias, in_names [], out_names ['decoder.convBlocks.4.normalization.GNLayer.bias']2020-09-22 15:35:54,958 - 148 - DEBUG_1 - Added buffer named decoder.convBlocks.4.normalization.GNLayer.bias of shape [256]2020-09-22 15:35:54,958 - 141 - DEBUG - Added OpNode with name decoder.convBlocks.4.normalization.GNLayer.weight, in_names [], out_names ['decoder.convBlocks.4.normalization.GNLayer.weight']2020-09-22 15:35:54,958 - 148 - DEBUG_1 - Added buffer named decoder.convBlocks.4.normalization.GNLayer.weight of shape [256]2020-09-22 15:35:54,959 - 141 - DEBUG - Added OpNode with name decoder.convBlocks.5.convLayer.weight, in_names [], out_names ['decoder.convBlocks.5.convLayer.weight']2020-09-22 15:35:54,959 - 148 - DEBUG_1 - Added buffer named decoder.convBlocks.5.convLayer.weight of shape [512, 128, 4, 4]2020-09-22 15:35:54,960 - 141 - DEBUG - Added OpNode with name decoder.convBlocks.5.normalization.GNLayer.bias, in_names [], out_names ['decoder.convBlocks.5.normalization.GNLayer.bias']2020-09-22 15:35:54,960 - 148 - DEBUG_1 - Added buffer named decoder.convBlocks.5.normalization.GNLayer.bias of shape [128]2020-09-22 15:35:54,960 - 141 - DEBUG - Added OpNode with name decoder.convBlocks.5.normalization.GNLayer.weight, in_names [], out_names ['decoder.convBlocks.5.normalization.GNLayer.weight']2020-09-22 15:35:54,960 - 148 - DEBUG_1 - Added buffer named decoder.convBlocks.5.normalization.GNLayer.weight of shape [128]2020-09-22 15:35:54,960 - 141 - DEBUG - Added OpNode with name decoder.convBlocks.6.convLayer.weight, in_names [], out_names ['decoder.convBlocks.6.convLayer.weight']2020-09-22 15:35:54,960 - 148 - DEBUG_1 - Added buffer named decoder.convBlocks.6.convLayer.weight of shape [256, 64, 4, 4]2020-09-22 15:35:54,960 - 141 - DEBUG - Added OpNode with name decoder.convBlocks.6.normalization.GNLayer.bias, in_names [], out_names ['decoder.convBlocks.6.normalization.GNLayer.bias']2020-09-22 15:35:54,960 - 148 - DEBUG_1 - Added buffer named decoder.convBlocks.6.normalization.GNLayer.bias of shape [64]2020-09-22 15:35:54,960 - 141 - DEBUG - Added OpNode with name decoder.convBlocks.6.normalization.GNLayer.weight, in_names [], out_names ['decoder.convBlocks.6.normalization.GNLayer.weight']2020-09-22 15:35:54,960 - 148 - DEBUG_1 - Added buffer named decoder.convBlocks.6.normalization.GNLayer.weight of shape [64]2020-09-22 15:35:54,960 - 141 - DEBUG - Added OpNode with name decoder.convBlocks.7.convLayer.weight, in_names [], out_names ['decoder.convBlocks.7.convLayer.weight']2020-09-22 15:35:54,961 - 148 - DEBUG_1 - Added buffer named decoder.convBlocks.7.convLayer.weight of shape [128, 3, 4, 4]2020-09-22 15:35:54,961 - 141 - DEBUG - Added OpNode with name encoder.convBlocks.0.convLayer.weight, in_names [], out_names ['encoder.convBlocks.0.convLayer.weight']2020-09-22 15:35:54,961 - 148 - DEBUG_1 - Added buffer named encoder.convBlocks.0.convLayer.weight of shape [64, 3, 4, 4]2020-09-22 15:35:54,961 - 141 - DEBUG - Added OpNode with name encoder.convBlocks.1.convLayer.weight, in_names [], out_names ['encoder.convBlocks.1.convLayer.weight']2020-09-22 15:35:54,961 - 148 - DEBUG_1 - Added buffer named encoder.convBlocks.1.convLayer.weight of shape [128, 64, 4, 4]2020-09-22 15:35:54,961 - 141 - DEBUG - Added OpNode with name encoder.convBlocks.1.normalization.GNLayer.bias, in_names [], out_names ['encoder.convBlocks.1.normalization.GNLayer.bias']2020-09-22 15:35:54,961 - 148 - DEBUG_1 - Added buffer named encoder.convBlocks.1.normalization.GNLayer.bias of shape [128]2020-09-22 15:35:54,961 - 141 - DEBUG - Added OpNode with name encoder.convBlocks.1.normalization.GNLayer.weight, in_names [], out_names ['encoder.convBlocks.1.normalization.GNLayer.weight']2020-09-22 15:35:54,961 - 148 - DEBUG_1 - Added buffer named encoder.convBlocks.1.normalization.GNLayer.weight of shape [128]2020-09-22 15:35:54,962 - 141 - DEBUG - Added OpNode with name encoder.convBlocks.2.convLayer.weight, in_names [], out_names ['encoder.convBlocks.2.convLayer.weight']2020-09-22 15:35:54,962 - 148 - DEBUG_1 - Added buffer named encoder.convBlocks.2.convLayer.weight of shape [256, 128, 4, 4]2020-09-22 15:35:54,962 - 141 - DEBUG - Added OpNode with name encoder.convBlocks.2.normalization.GNLayer.bias, in_names [], out_names ['encoder.convBlocks.2.normalization.GNLayer.bias']2020-09-22 15:35:54,962 - 148 - DEBUG_1 - Added buffer named encoder.convBlocks.2.normalization.GNLayer.bias of shape [256]2020-09-22 15:35:54,962 - 141 - DEBUG - Added OpNode with name encoder.convBlocks.2.normalization.GNLayer.weight, in_names [], out_names ['encoder.convBlocks.2.normalization.GNLayer.weight']2020-09-22 15:35:54,962 - 148 - DEBUG_1 - Added buffer named encoder.convBlocks.2.normalization.GNLayer.weight of shape [256]2020-09-22 15:35:54,965 - 141 - DEBUG - Added OpNode with name encoder.convBlocks.3.convLayer.weight, in_names [], out_names ['encoder.convBlocks.3.convLayer.weight']2020-09-22 15:35:54,965 - 148 - DEBUG_1 - Added buffer named encoder.convBlocks.3.convLayer.weight of shape [512, 256, 4, 4]2020-09-22 15:35:54,965 - 141 - DEBUG - Added OpNode with name encoder.convBlocks.3.normalization.GNLayer.bias, in_names [], out_names ['encoder.convBlocks.3.normalization.GNLayer.bias']2020-09-22 15:35:54,965 - 148 - DEBUG_1 - Added buffer named encoder.convBlocks.3.normalization.GNLayer.bias of shape [512]2020-09-22 15:35:54,965 - 141 - DEBUG - Added OpNode with name encoder.convBlocks.3.normalization.GNLayer.weight, in_names [], out_names ['encoder.convBlocks.3.normalization.GNLayer.weight']2020-09-22 15:35:54,965 - 148 - DEBUG_1 - Added buffer named encoder.convBlocks.3.normalization.GNLayer.weight of shape [512]2020-09-22 15:35:54,972 - 141 - DEBUG - Added OpNode with name encoder.convBlocks.4.convLayer.weight, in_names [], out_names ['encoder.convBlocks.4.convLayer.weight']2020-09-22 15:35:54,972 - 148 - DEBUG_1 - Added buffer named encoder.convBlocks.4.convLayer.weight of shape [512, 512, 4, 4]2020-09-22 15:35:54,972 - 141 - DEBUG - Added OpNode with name encoder.convBlocks.4.normalization.GNLayer.bias, in_names [], out_names ['encoder.convBlocks.4.normalization.GNLayer.bias']2020-09-22 15:35:54,972 - 148 - DEBUG_1 - Added buffer named encoder.convBlocks.4.normalization.GNLayer.bias of shape [512]2020-09-22 15:35:54,972 - 141 - DEBUG - Added OpNode with name encoder.convBlocks.4.normalization.GNLayer.weight, in_names [], out_names ['encoder.convBlocks.4.normalization.GNLayer.weight']2020-09-22 15:35:54,972 - 148 - DEBUG_1 - Added buffer named encoder.convBlocks.4.normalization.GNLayer.weight of shape [512]2020-09-22 15:35:54,978 - 141 - DEBUG - Added OpNode with name encoder.convBlocks.5.convLayer.weight, in_names [], out_names ['encoder.convBlocks.5.convLayer.weight']2020-09-22 15:35:54,978 - 148 - DEBUG_1 - Added buffer named encoder.convBlocks.5.convLayer.weight of shape [512, 512, 4, 4]2020-09-22 15:35:54,978 - 141 - DEBUG - Added OpNode with name encoder.convBlocks.5.normalization.GNLayer.bias, in_names [], out_names ['encoder.convBlocks.5.normalization.GNLayer.bias']2020-09-22 15:35:54,978 - 148 - DEBUG_1 - Added buffer named encoder.convBlocks.5.normalization.GNLayer.bias of shape [512]2020-09-22 15:35:54,978 - 141 - DEBUG - Added OpNode with name encoder.convBlocks.5.normalization.GNLayer.weight, in_names [], out_names ['encoder.convBlocks.5.normalization.GNLayer.weight']2020-09-22 15:35:54,978 - 148 - DEBUG_1 - Added buffer named encoder.convBlocks.5.normalization.GNLayer.weight of shape [512]2020-09-22 15:35:54,983 - 141 - DEBUG - Added OpNode with name encoder.convBlocks.6.convLayer.weight, in_names [], out_names ['encoder.convBlocks.6.convLayer.weight']2020-09-22 15:35:54,984 - 148 - DEBUG_1 - Added buffer named encoder.convBlocks.6.convLayer.weight of shape [512, 512, 4, 4]2020-09-22 15:35:54,984 - 141 - DEBUG - Added OpNode with name encoder.convBlocks.6.normalization.GNLayer.bias, in_names [], out_names ['encoder.convBlocks.6.normalization.GNLayer.bias']2020-09-22 15:35:54,984 - 148 - DEBUG_1 - Added buffer named encoder.convBlocks.6.normalization.GNLayer.bias of shape [512]2020-09-22 15:35:54,984 - 141 - DEBUG - Added OpNode with name encoder.convBlocks.6.normalization.GNLayer.weight, in_names [], out_names ['encoder.convBlocks.6.normalization.GNLayer.weight']2020-09-22 15:35:54,984 - 148 - DEBUG_1 - Added buffer named encoder.convBlocks.6.normalization.GNLayer.weight of shape [512]2020-09-22 15:35:54,990 - 141 - DEBUG - Added OpNode with name encoder.convBlocks.7.convLayer.weight, in_names [], out_names ['encoder.convBlocks.7.convLayer.weight']2020-09-22 15:35:54,990 - 148 - DEBUG_1 - Added buffer named encoder.convBlocks.7.convLayer.weight of shape [512, 512, 4, 4]2020-09-22 15:35:54,995 - 155 - DEBUG_2 - Applying graph Optimizations...2020-09-22 15:35:54,996 - 155 - DEBUG_2 - Evaluating to match Sequence ['elementwise_binary_sub']...2020-09-22 15:35:54,996 - 155 - DEBUG_2 - Found 0 match(es)2020-09-22 15:35:54,996 - 155 - DEBUG_2 - Evaluating to match Sequence ['elementwise_binary_div']...2020-09-22 15:35:54,996 - 155 - DEBUG_2 - Found 0 match(es)2020-09-22 15:35:54,996 - 155 - DEBUG_2 - Evaluating to match Sequence ['elementwise_binary_product']...2020-09-22 15:35:54,996 - 155 - DEBUG_2 - Found 0 match(es)2020-09-22 15:35:54,997 - 155 - DEBUG_2 - Evaluating to match Sequence ['elementwise_product']...2020-09-22 15:35:54,997 - 155 - DEBUG_2 - Found 0 match(es)2020-09-22 15:35:54,997 - 155 - DEBUG_2 - Evaluating to match Sequence ['scale']...2020-09-22 15:35:54,997 - 155 - DEBUG_2 - Found 0 match(es)2020-09-22 15:35:54,997 - 155 - DEBUG_2 - Evaluating to match Sequence ['elementwise_div']...2020-09-22 15:35:54,997 - 155 - DEBUG_2 - Found 0 match(es)2020-09-22 15:35:54,997 - 155 - DEBUG_2 - Evaluating to match Sequence ['elementwise_sum']...2020-09-22 15:35:54,997 - 155 - DEBUG_2 - Found 0 match(es)2020-09-22 15:35:54,998 - 155 - DEBUG_2 - Evaluating to match Sequence ['elementwise_sub']...2020-09-22 15:35:54,998 - 155 - DEBUG_2 - Found 0 match(es)2020-09-22 15:35:54,998 - 155 - DEBUG_2 - Evaluating to match Sequence ['concatenation']...2020-09-22 15:35:54,998 - 155 - DEBUG_2 - Found 0 match(es)2020-09-22 15:35:54,998 - 155 - DEBUG_2 - Evaluating to match Sequence ['concatenation']...2020-09-22 15:35:54,998 - 155 - DEBUG_2 - Found 0 match(es)2020-09-22 15:35:54,998 - 155 - DEBUG_2 - Evaluating to match Sequence ['reshape', 'permute', 'reshape']...2020-09-22 15:35:54,998 - 155 - DEBUG_2 - Found 0 match(es)2020-09-22 15:35:54,999 - 155 - DEBUG_2 - Evaluating to match Sequence ['elementwise_sum', 'neuron', 'elementwise_binary_product', 'elementwise_binary_product']...2020-09-22 15:35:54,999 - 155 - DEBUG_2 - Found 0 match(es)2020-09-22 15:35:54,999 - 155 - DEBUG_2 - Evaluating to match Sequence ['elementwise_sum', 'neuron', 'elementwise_binary_product', 'elementwise_binary_product']...2020-09-22 15:35:54,999 - 155 - DEBUG_2 - Found 0 match(es)2020-09-22 15:35:54,999 - 155 - DEBUG_2 - Evaluating to match Sequence ['elementwise_sum', 'neuron', 'elementwise_binary_product', 'elementwise_binary_div']...2020-09-22 15:35:54,999 - 155 - DEBUG_2 - Found 0 match(es)2020-09-22 15:35:54,999 - 155 - DEBUG_2 - Evaluating to match Sequence ['elementwise_sum', 'neuron', 'elementwise_binary_div', 'elementwise_binary_product']...2020-09-22 15:35:54,999 - 155 - DEBUG_2 - Found 0 match(es)2020-09-22 15:35:54,999 - 155 - DEBUG_2 - Evaluating to match Sequence ['convolution']...2020-09-22 15:35:55,000 - 155 - DEBUG_2 - Found 0 match(es)2020-09-22 15:35:55,000 - 155 - DEBUG_2 - Evaluating to match Sequence ['fully_connected']...2020-09-22 15:35:55,000 - 155 - DEBUG_2 - Found 0 match(es)2020-09-22 15:35:55,000 - 155 - DEBUG_2 - Evaluating to match Sequence ['elementwise_sum']...2020-09-22 15:35:55,000 - 155 - DEBUG_2 - Found 0 match(es)2020-09-22 15:35:55,000 - 141 - DEBUG - Pruning Disconnected nodes ['decoder.convBlocks.3.convLayer.weight', 'decoder.convBlocks.7.convLayer.weight', 'encoder.convBlocks.4.normalization.GNLayer.weight', 'decoder.convBlocks.3.normalization.GNLayer.bias', 'encoder.convBlocks.0.convLayer.weight', 'encoder.convBlocks.2.normalization.GNLayer.bias', 'encoder.convBlocks.5.convLayer.weight', 'decoder.convBlocks.3.normalization.GNLayer.weight', 'encoder.convBlocks.1.convLayer.weight', 'encoder.convBlocks.5.normalization.GNLayer.bias', 'decoder.convBlocks.4.convLayer.weight', 'encoder.convBlocks.1.normalization.GNLayer.bias', 'encoder.convBlocks.5.normalization.GNLayer.weight', 'decoder.convBlocks.0.convLayer.weight', 'decoder.convBlocks.4.normalization.GNLayer.bias', 'decoder.convBlocks.0.normalization.GNLayer.bias', 'encoder.convBlocks.1.normalization.GNLayer.weight', 'encoder.convBlocks.6.convLayer.weight', 'decoder.convBlocks.4.normalization.GNLayer.weight', 'decoder.convBlocks.0.normalization.GNLayer.weight', 'encoder.convBlocks.2.convLayer.weight', 'encoder.convBlocks.6.normalization.GNLayer.bias', 'decoder.convBlocks.5.convLayer.weight', 'decoder.convBlocks.1.convLayer.weight', 'encoder.convBlocks.2.normalization.GNLayer.weight', 'encoder.convBlocks.6.normalization.GNLayer.weight', 'decoder.convBlocks.5.normalization.GNLayer.bias', 'decoder.convBlocks.1.normalization.GNLayer.bias', 'encoder.convBlocks.7.convLayer.weight', 'encoder.convBlocks.3.convLayer.weight', 'decoder.convBlocks.5.normalization.GNLayer.weight', 'decoder.convBlocks.1.normalization.GNLayer.weight', 'encoder.convBlocks.3.normalization.GNLayer.bias', 'decoder.convBlocks.6.convLayer.weight', 'decoder.convBlocks.2.convLayer.weight', 'encoder.convBlocks.3.normalization.GNLayer.weight', 'decoder.convBlocks.6.normalization.GNLayer.bias', 'decoder.convBlocks.2.normalization.GNLayer.bias', 'encoder.convBlocks.4.convLayer.weight', 'decoder.convBlocks.6.normalization.GNLayer.weight', 'decoder.convBlocks.2.normalization.GNLayer.weight', 'encoder.convBlocks.4.normalization.GNLayer.bias']2020-09-22 15:35:55,006 - 162 - DEBUG_3 - no validation target specified. Using defaults.2020-09-22 15:35:55,006 - 172 - INFO - INFO_DLC_SAVE_LOCATION: Saving model at models/Pix2Pix_GIN_no_patch.dlc2020-09-22 15:35:55,006 - 172 - INFO - INFO_CONVERSION_SUCCESS: Conversion completed successfullyWARNING_OP_NOT_SUPPORTED_BY_ONNX: Unable to register converter supported Operation [Resize:Version 10] with your Onnx installation. Got: No schema registered for 'Resize'!. Converter will bail if Model contains this Op.WARNING_OP_NOT_SUPPORTED_BY_ONNX: Unable to register converter supported Operation [Resize:Version 11] with your Onnx installation. Got: No schema registered for 'Resize'!. Converter will bail if Model contains this Op.
Thank you for providing my some insights on the root cause.