Comments (4)
I guess everything is work in progress at this point. Did it not work for you? It works on my PyTorch version on the two networks I tested VGG and ResNet50. Obviously there is a lot more to be done.
The rational for switching to HTML-like labels is that it gives more flexibility to control the text rendering.
from hiddenlayer.
You're correct, it is functional. A commented code block made me think this was work in progress, for some reason.
Also, are you open to having the notion of "schemas"? As in, we could have a "blue" schema, or a "black & white classic" schema. I felt that what you had before looked perhaps sharper than the new color schema. It's really not a big deal.
from hiddenlayer.
Yes, I isolated the color values into separate constants to make it easy to customize the look. Currently, only these values are separated and we should add more as we go along:
COLOR_OUTLINE = "#4080A0"
COLOR_FILL = "#F0F0F0"
COLOR_FONT = "#204050"
We can make these values into a dict and then it's easy to override as such:
ww.theme = {"outline_color": "#4080A0", "fill_color": "#F0F0F0", "font_color": "#204050"}
from hiddenlayer.
@waleedka, I've added the styling but also decided to keep the HTML rendering in a different method (draw_graph_html()
instead of draw_graph()
) because of the much lower quality of the output at this time.
Please take a look at the section Inception v1
in the TF graph notebook to see what I mean. I've rendered the graph using the two different methods one after the other so you can compare.
The non-HTML version looks quite great while the HTML one is pretty much impossible to read.
Let me know if you disagree.
from hiddenlayer.
Related Issues (20)
- AttributeError: module 'torch.onnx' has no attribute '_optimize_trace' HOT 7
- May I get the very first and last tensor shape?
- module 'torch.jit' has no attribute '_get_trace_graph' HOT 3
- Pytorch Model Branch Duplication
- AttributeError: module 'torch.jit' has no attribute '_get_trace_graph' HOT 3
- ONNX symbolic expected a constant value of the rand argument
- tensor shapes not displayed in rendered graph HOT 5
- can it show variable name at every node?
- demo pytorch_graph.ipynb not working
- How to display branch nodes / parallel blocks HOT 2
- Not displaying graph as expected in Jupyter Notebook (either during training or after training) HOT 1
- How exactly should look the second parametr?
- build_graph() does not return HOT 2
- AttributeError: 'Digraph' object has no attribute '_repr_svg_' HOT 2
- How to display dimensions and change font to Times HOT 1
- TypeError for Pytorch Model HOT 4
- support yolov5 HOT 2
- Error when trying to print the Model
- Error while trying to run the example
- How to plot bert model? (Transfomer models) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hiddenlayer.