ann-visualizer icon indicating copy to clipboard operation
ann-visualizer copied to clipboard

Symmetry

Open endolith opened this issue 5 years ago • 3 comments

Is there any reason why the diagrams are not symmetrical? This example for instance https://camo.githubusercontent.com/8b516c514b62b557713d42afb02d4b7aa3e8a8ed/68747470733a2f2f692e696d6775722e636f6d2f7633517041436c2e706e67

the red and blue nodes are not lined up with each other, even though there are 10 of each, so the "Dropout layer" oval is to the left of the "Flattening" triangle.

Or in this example, the Activation layer boxes don't line up with each other:

https://user-images.githubusercontent.com/32748771/38524223-9266e5f4-3c56-11e8-8532-53cd866cd88b.png

Or this:

2018-08-25 11_08_20-network gv pdf - sumatrapdf

endolith avatar Aug 24 '18 21:08 endolith

That is how graphviz places the boxes. I have tried to fix this before, with no success.

If you would like to contribute and solve this issue, open a pull request. I will gladly accept it if it gets fixed.

RedaOps avatar Aug 24 '18 21:08 RedaOps

https://stackoverflow.com/a/23430742/125507 might be relevant?

and

https://graphviz.gitlab.io/faq/#FaqBalanceTree

endolith avatar Aug 24 '18 21:08 endolith

The problem is I dont use graphviz language, I use the python API which is a little restricted.

RedaOps avatar Aug 24 '18 21:08 RedaOps