-
Notifications
You must be signed in to change notification settings - Fork 50
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
[draft] Add Weight Visualization #1492
base: main
Are you sure you want to change the base?
Conversation
This commit adds weight visualization example. ONE-vscode-DCO-1.0-Signed-off-by: Stanislav Ponkrashov <[email protected]>
@staddy , is this your current change? why I'm asking
What is your user scenario ?
|
@seanshpark, yes, this is what is implemented in the draft.
|
Currently the code just changes the default behavior of sidebar, adding a new property to any tensor with >= 2 axes. |
@staddy , have you read my comment #1492 (comment) ? or you don't understand it? please ask if you can't catch the meaning CircleGraph is shared code, as of now, used in circle graph view, partition editor and visquv
|
I would like to see this draft provide your full |
9733b92
to
be48d1d
Compare
Now VisualTensorView property is enabled only in circle graph and disabled in partition editor and visquv. |
@staddy , I've got your change but I can't see the weight bars. Please describe the condition of the model that shows the bar. |
@seanshpark, 'weights' a property of some nodes (in this case it's DepthwiseConv2D). Currently the visualizer works for any properties that are tensors of shape [a, b...] (in this case [1, 3, 3, 32]):
|
Now I can see the bars :) I've tried with some models and found this: Model: inception_v3_2018_04_27.tgz |
Q) How does the bar graph show when Tensor is 2D, 3D or 5D ? |
Q) what is the meaning of the colors ? |
@seanshpark, thank you, the bug with black bar is fixed.
If I understand your question right,
|
The higher wavelength, the higher value:
'value' is from 0.0 to 1.0 (normalized value from tensor):
|
thanks for the comment. |
Yes I think so :) I've tried with If you can, please try
(3) Copy to
(4) build ONE
(5) in |
@seanshpark, strange, |
check on first axis 127 and last axis 127 |
@seanshpark, sorry, still can't reproduce (though currently the width of text input is not enough to show 3 digits - so it's 12 instead of 127 on the screenshots): |
Latest commit is work OK :) |
43dc0ad
to
c31c81c
Compare
c31c81c
to
cf31e94
Compare
Thanks for the document! Add: I would be better to rename |
@seanshpark, done |
Code looks good to me (not sure for others) |
@seanshpark, done: |
This pull request adds a weight visualization implementation example:
On expanding a compatible node's tensor (with dim >= 2) a weight visualization GUI appears in property side-bar.
To visualize a tensor as a 2d image you need to:
For example: you are visualizing a tensor of shape (32, 3, 3, 3).
Let's assume you have selected the 2 lower checkboxes and fixed first axis value as 10 and the second axis value as 1.
So the top left pixel of the image corresponds to tensor[10][1][0][0] value.
The bottom right pixel - tensor[10][1][2][2] value.