KhronosGroup / NNEF-Tools

The NNEF Tools repository contains tools to generate and consume NNEF documents
https://www.khronos.org/nnef
222 stars 57 forks source link

Problem with NNEF-->ONNX conversion #166

Open HamilaWael opened 7 months ago

HamilaWael commented 7 months ago

NNEF to ONNX conversion failed. python -m nnef_tools.convert --input-format nnef --output-format onnx --input-model /home/path/to/my/file/modeltoconvert --output-model minigraph.onnx "NNEF model must be a (compressed) folder, but an uncompressed file was provided" I attempted to save the model to a file and compress it, but encountered issues. The problem persisted across various NNEF models that I experimented with. image

gyenesvi commented 7 months ago

What is /home/path/to/my/file/modeltoconvert? It should either be a folder containing the graph.nnef and the weights (.dat files), or a tar.gz compressed file containing such a folder. As the error message suggests, it was neither.

HamilaWael commented 7 months ago

It's a compressed folder (.tar.gz) containing only my .nnef model

gyenesvi commented 7 months ago

How is the compressed file named (does it actually end with .tar.gz)? It must end with either .tgz or .gz to be recognized as a compressed folder. Does it work if the folder is uncompressed?