-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
ONNX: Unexpected end of file #1155
Comments
I used the ONNX model generated by the python script in the attachment, which passed the check using onnx.checker.check_model, but it cannot be opened correctly with Netron |
@jerly-hjzhou running the script does not reproduce the issue. Can you share the file that fails to load or a screenshot of the end of the file in a hex editor? |
When I use It sometimes produces "Unexpected end of file", and sometimes "view.View is not constructor", or "window.host is undefined", or a black and white (no color) graph, or "view.Sidebar is not a constructor", or "base.Tlemetry is not a constructor", or load successfully. It can load successfully after several reloads. I suspect it is a synchronizing issue, that when a js object is needed, it is not fully loaded. But I have no proof. |
@fefe982 can you help investigate this issue?
|
Only a bunch of
The error mentioned grapher.js. I checked grapher.js in the network panel of the brower's Developer Tools, I can only see partial response. The content of the js is not fully transfered. The Content-Length says it has 25kB, but only 22kB is transferred. The Transferred column of several items (including grapher.js) has a When accessing single item, the full content can be transferred, and there is not
I'm typing the URL in the browser.
The environment is a bit complicated. netron is run in a container, the container is in a remote Linux machine. I'm running VS Code on a local Windows machine, and used the port forwarding function of Remote SSH / Remote Container of VS Code to access it form the Windows machine. The browser is firefox. |
After several tests and searching the web, the The partial content problem can happen on any file. When only partial content of the onnx file is received, I got |
It's so strange, I was able to open this model today. I thought you had resolved this issue, haha. |
@fefe982 any insights why this might be happening or how to reproduce it? |
I have encountered the same error, and the reason in my case was pretty straight forward: model was generated on server, i was copying it to local machine, and i did not wait for the transfer to finish. |
Please attach the model file to reproduce this issue or steps how it was created. |
Please help by providing information how to reproduce this issue:
The text was updated successfully, but these errors were encountered: