NNEF-Tools
NNEF-Tools copied to clipboard
Problem with NNEF-->ONNX conversion
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.
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.
It's a compressed folder (.tar.gz) containing only my .nnef model
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?