NNEF-Tools icon indicating copy to clipboard operation
NNEF-Tools copied to clipboard

Problem with NNEF-->ONNX conversion

Open HamilaWael opened this issue 11 months ago • 3 comments

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

HamilaWael avatar Feb 28 '24 22:02 HamilaWael

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.

gyenesvi avatar Feb 28 '24 23:02 gyenesvi

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

HamilaWael avatar Feb 29 '24 07:02 HamilaWael

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?

gyenesvi avatar Feb 29 '24 09:02 gyenesvi