question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

tflite to kmodel conversion error

See original GitHub issue

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?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:40 (15 by maintainers)

github_iconTop GitHub Comments

2reactions
sunnycasecommented, Dec 10, 2021

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

0reactions
curioyangcommented, Jan 13, 2022

@abhi-84 I’m sorry to reply you so late. Please wait nncase-1.3. There is not enough capacity to handle this compilation problem now.

Would this issue be resolved in nncase-1.3? When shall I expect that to release? Thanks

Next month.

Read more comments on GitHub >

github_iconTop Results From Across the Web

When I used the nncase to convert tflite model to kmodel ...
When I used the nncase to convert tflite model to kmodel ,errors occurs #179 · Comments · Footer.
Read more >
Converting TFLite to Kmodel
Hi, I've been trying to convert a TFlite model to a KMODEL using the provided tflite2kmodel.sh on Ubuntu. The error I receive is...
Read more >
Developers - tflite to kmodel conversion error -
I have created darknet model weights using yolov4-tiny. Then darknet model is converted to TensorFlow and then to tflite (int8 quantized). Now ...
Read more >
Error when converting a tf model to TFlite model
I solved the problem ! It was the activation function 'gelu' not yet supported by TFlite. I changed it to 'relu' and no...
Read more >
Model conversion overview | TensorFlow Lite
The diagram below shows the high level steps in converting a model. TFLite conversion workflow. Figure 1. TensorFlow Lite conversion workflow.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found