Skip to content
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

Colorize edge with int data type #1303

Closed
wants to merge 2 commits into from

Conversation

seanshpark
Copy link

This will colorize edge with int data type.
This is to better visualize quantized models.

This will colorize edge with int data type.
This is to better visualize quantized models.
@seanshpark
Copy link
Author

sample capture of Quantize_001.zip tflite model

dark light
image image

Comment on lines +72 to +75
.edge-path-b4 { stroke: #70e; stroke-width: 1x; fill: none; marker-end: url("#arrowhead"); }
.edge-path-b8 { stroke: #04e; stroke-width: 1px; fill: none; marker-end: url("#arrowhead"); }
.edge-path-b16 { stroke: #080; stroke-width: 1px; fill: none; marker-end: url("#arrowhead"); }
.edge-path-b32 { stroke: #992; stroke-width: 1px; fill: none; marker-end: url("#arrowhead"); }
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not good at colors. Please choose with your preference :)

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please work with a designer to address this.

};
const edgePathClass = (dataType) => {
const dt = dataType.toLowerCase();
if (dt === 'uint8' || dt === 'int8') {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: may consider swapping to a switch statement here

@seanshpark
Copy link
Author

@kylesayrs , thanks for the suggestion !
I expect @lutzroeder will land a great changes for colorized edges :)

Copy link
Owner

@lutzroeder lutzroeder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few questions:

  1. There are many more data types, why hardcode this set and how would this extend to other types?
  2. Could this be overwhelming or confusing to other users?
  3. Would two styles be enough if the problem is separating int and float?
  4. What other solutions might work to solve this?

@lutzroeder
Copy link
Owner

lutzroeder commented Jul 13, 2024

Please comment with additional information if the pull request should be reopened.

@lutzroeder lutzroeder closed this Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants