lutzroeder / netron

Visualizer for neural network, deep learning and machine learning models
https://netron.app
MIT License
27.55k stars 2.74k forks source link

Hierarchical expansion of large graphs #68

Open jenniferzhu opened 6 years ago

jenniferzhu commented 6 years ago

I failed to load 2.1 MB .meta file generated from char-rnn model (https://github.com/sherjilozair/char-rnn-tensorflow) with python 2.7 and tensorflow 1.0.

It is loading forever... I am wondering what is wrong with these files?

lutzroeder commented 6 years ago

The graph has more than 5000 nodes and the graph layout is choking. Tried running GraphViz and it's running forever as well. Those graphs will need an expand and explore UI that avoids rendering the entire graph. TensorFlow support is pretty experimental at this point.

jenniferzhu commented 6 years ago

Thanks @lutzroeder I hope there would be some ways to workaround this issue, since I really like Netron's image of models.

erwincoumans commented 5 years ago

Same issue, meta file is here in case you want to test it: https://github.com/bulletphysics/bullet3/blob/master/examples/pybullet/gym/pybullet_data/policies/ppo/minitaur_reactive_env/model.ckpt-14000000.meta

kobemini commented 4 years ago

@lutzroeder You mentioned "Those graphs will need an expand and explore UI that avoids rendering the entire graph" , are there any improvements planned for release versions in the future?

jojivk73 commented 4 years ago

For large graphs, is it possible to add an option to show a given node + fanin and fanouts upto specified level. Example netron <g.pbtxt> -node -level 3

JasonWayne commented 4 years ago

@jojivk73 there is no such args like node or level in my netron cmd line...

yairb-gm commented 3 years ago

Hi, I'm encountering this issue as well for models I was able to open with previous versions, of onnx files

lutzroeder commented 3 years ago

@yairb-gm can you please share a sample file?

CarlPoirier commented 2 years ago

Hi @lutzroeder,

I've seen there was EfficientDet-D0 mentioned in the other issue about this. It does work now, but Netron still barfs on EfficientDet-D2. Here is an example onnx file. I'm not very fluent in javascript, is there anything I can do quickly to get this fixed?

Thanks,

Carl

lutzroeder commented 1 year ago

pytorch/pytorch#75100

ZhangGe6 commented 1 week ago

Hi folks. I developed netron-hierarchy, based on netron codebase and enables visualize models in a hierarchical way. This may be worth a try, especially for LLM models. Hope it helps!