Open mrdeveloperdude opened 2 years ago
Hello, the assert code: op.OutputsLength() is to ensure each operator in your model has one or No output; you can check the module using Netron tools to see whether there are some operators has more than one output( it is unreasonable because each operator should have only one output). Hope it will help u
I cloned repo, installed pipenv, ran pipenv shell in my exising env and then started tflite_tools.py with the official SPICE model (audio pitch tracking model by google, included with tf) as input. It then failed with assertion error. Please see full transcript below:
(bob) leo@katana:~/Desktop/Projects/Singularity/libs/tflite_build$ pip install pipenv
(bob) leo@katana:~/Desktop/Projects/Singularity/libs$ mkdir tflite_tools (bob) leo@katana:~/Desktop/Projects/Singularity/libs$ cd tflite_tools/ (bob) leo@katana:~/Desktop/Projects/Singularity/libs/tflite_tools$ git clone https://github.com/eliberis/tflite-tools
(bob) leo@katana:~/Desktop/Projects/Singularity/libs/tflite_tools$ cd tflite-tools/
(bob) leo@katana:~/Desktop/Projects/Singularity/libs/tflite_tools/tflite-tools$ ls
(bob) leo@katana:~/Desktop/Projects/Singularity/libs/tflite_tools/tflite-tools$ pipenv install
(bob) leo@katana:~/Desktop/Projects/Singularity/libs/tflite_tools/tflite-tools$ pipenv shell
(bob) leo@katana:~/Desktop/Projects/Singularity/libs/tflite_tools/tflite-tools$ python tflite_tools.py --help
(bob) leo@katana:~/Desktop/Projects/Singularity/libs/tflite_tools/tflite-tools$ python tflite_tools.py -i ../../../data/ml/lite-model_spice_1.tflite