-
Notifications
You must be signed in to change notification settings - Fork 624
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix graph bugs #391
Fix graph bugs #391
Conversation
@@ -483,23 +486,7 @@ def add_edge(self, source, target, label, **kwargs): | |||
|
|||
def draw_graph(model_pb_path, image_dir): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The function name doesn't apply anymore. Also the we no longer need image_dir.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. This will also be renamed in the cleanup PR.
data = {'url': ''} | ||
# TODO(daming-lu): rename variables because we switched from static graph generated by graphviz | ||
# to d3/dagre drawn svg | ||
if graph_image_path is not None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will we generate static image? We might be able to remove block
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Like the TODO mentioned, we need to rename and remove some stuff because we were using GraphViz previously. I will do it after the release
else: | ||
data = {'url': '/graphs/image'} | ||
image_dir = os.path.join(args.logdir, "graphs") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
image_dir seems un-necessary now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. It will be removed in the code cleanup.
TODO: add slider for large graph
We need this because if the graph is too large, each node is too small to see clearly. See MNIST vs. SqueezeNet below:
MNIST:
SqueezeNet: