Closed suahelen closed 3 months ago
That's normal in netron rendering large graphs. Please raise issues in the netron repo.
I was more wodering about the reason why the Graph is much larger when I compile a model with MAX.
Could you share the disk size difference pre and after compilation of the model?
Sure thing: test.onnx -> 93395 KB torch_jit.maxviz -> 2241KB
The file was generated with max visualize test.onnx
Thanks for the feedback. We’re working on enabling our maxviz graphs to be vizualized with a larger number of nodes. We’ll add this to our feature request map.
Also to confirm, the numbers you pasted above show that the torch_jit.maxviz is much smaller, 41 times (93395 / 2241) because maxviz contains the graph only and not weights.
maxviz which we visualize is lower level than ONNX - e.g. it makes all casts and broadcasts explicit which can result in a significant increase of nodes numbers, so this is somewhat not surprising that netron can visualize the original onnx model, but can’t visualize our IR.
For more details, please check out our doc here
Yes, I can confirm that the .maxviz is much smaller.
With Graph I was referring to the visualization that netron would show. I guess it makes sense that this would be larger if you show the operations in more detail.
Thanks for the feedback.
Bug description
I was tinkering around with the following model. https://github.com/openvinotoolkit/anomalib/tree/main/src/anomalib/models/image/fastflow
Running the model with the max engine seems to be fine as far as I can tell. Albeit, with the limited performance others have experienced on Windows so far.
When trying to visualize the graph with netron I get a warning that I am tring to visualize a model with a large number of nodes. Is that normal? When continuing the app hangs and does not seem to open the model. Visualizing the onnx file works fine.
Steps to reproduce
Here are the models I used: https://drive.google.com/drive/u/1/folders/17vKQe1kRtWYfkfJ5lflZc1-TIXniLobt
System information