lutzroeder / netron

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

Model comparison #705

Closed Vozf closed 1 year ago

Vozf commented 3 years ago

It would be useful to compare 2 graphs to find the difference between the two. It can be possibly viewed as 2 side by side graphs with duplicated navigation where same nodes are highlighted as green and different nodes are highlighted as yellow

lutzroeder commented 3 years ago

@Vozf can you please implement this feature an submit a pull request.

drewm1980 commented 1 year ago

Graph comparison is NP-hard, but I doubt it matters because convnet graphs are small: https://en.wikipedia.org/wiki/Graph_isomorphism_problem

It's only one of many challenges to building a tool like this, but graph isomorphism / matching is present in graph libaries, e.g.

https://networkx.org/documentation/stable/reference/algorithms/generated/networkx.algorithms.isomorphism.is_isomorphic.html#networkx.algorithms.isomorphism.is_isomorphic

Anyone know any precedents for convnet model comparison tools? It's a bit tough to search on; vast majority of hits are for experimental comparisons of known ~different architectures.