nncase: tflite to kmodel conversion error

Hi all I have created darknet model weights using yolov4-tiny. Then darknet model is converted to TensorFlow and then to tflite (int8 quantized). Now when I am converting model to kmodel using “tflite2kmodel.sh” script, it throws an error!

Fatal: Layer Pad is not supported: Only paddings of [[0,0],[1,1],[1,1],[0,0]] is supported NnCase.Converter.Converters.LayerNotSupportedException: Layer Pad is not supported: Only paddings of [[0,0],[1,1],[1,1],[0,0]] is supported at NnCase.Converter.Converters.TfLiteToGraphConverter.ConvertPad(Operator op) in D:\Work\Repository\nncase\src\NnCase.Converter\Converters\TfLiteToGraphConverter.cs:line 129 at NnCase.Converter.Converters.TfLiteToGraphConverter.ConvertOperator(Operator op) in D:\Work\Repository\nncase\src\NnCase.Converter\Converters\TfLiteToGraphConverter.cs:line 99 at System.Linq.Enumerable.SelectEnumerableIterator2.ToList() at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source) at NnCase.Converter.Converters.TfLiteToGraphConverter.Convert() in D:\Work\Repository\nncase\src\NnCase.Converter\Converters\TfLiteToGraphConverter.cs:line 34 at NnCase.Cli.Program.Main(String[] args) in D:\Work\Repository\nncase\src\NnCase.Cli\Program.cs:line 113 at NnCase.Cli.Program.<Main>(String[] args)

get_nncase.sh – ncc is latest version!

#!/bin/bash mkdir -p ncc mkdir -p workspace mkdir -p images mkdir -p log cd ncc wget https://github.com/kendryte/nncase/releases/download/v0.1.0-rc5/ncc-linux-x86_64.tar.xz tar -Jxf ncc-linux-x86_64.tar.xz rm ncc-linux-x86_64.tar.xz echo “download nncase ok!”

How to resolve this issue?

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 40 (15 by maintainers)

Most upvoted comments

v0.1.0 is deprecated, please use the latest release.