Skip to content

Instantly share code, notes, and snippets.

@guoxiaolu
Created September 14, 2017 09:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guoxiaolu/2ed546e1e88d27afd82e6e1442b8d7a9 to your computer and use it in GitHub Desktop.
Save guoxiaolu/2ed546e1e88d27afd82e6e1442b8d7a9 to your computer and use it in GitHub Desktop.
how to use dot to output an image
digraph G{
node [shape=record]
a[label="ResNet50|{input:|output:}|{(224, 224, 3)|(2048)}"]
b[label="InceptionV3|{input:|output:}|{(299, 299, 3)|(2048)}"]
#c[label="Xception|{input:|output:}|{(299, 299, 3)|(2048)}"]
Merge[label="Merge|{input:|output:}|{(2, 2048)|(4096)}"]
Dropout[label="Dropout|Rate:|0.5"]
Output[label="Output|{input:|output:}|{(4096)|(365)}"]
Image -> a -> Merge
Image -> b -> Merge
#Image -> c -> Merge
Merge -> Dropout -> Output
}
save it as .dot file
dot -Tpng -o ./test.jpg graph.dot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment