Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with NNEF-->ONNX conversion #166

Open
HamilaWael opened this issue Feb 28, 2024 · 3 comments
Open

Problem with NNEF-->ONNX conversion #166

HamilaWael opened this issue Feb 28, 2024 · 3 comments

Comments

@HamilaWael
Copy link

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
Copy link
Contributor

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
Copy link
Author

HamilaWael commented Feb 29, 2024

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

@gyenesvi
Copy link
Contributor

gyenesvi commented Feb 29, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants