-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[MO][POC] TensorBoard for ov::Model - Alternative to Netron #14105
base: master
Are you sure you want to change the base?
[MO][POC] TensorBoard for ov::Model - Alternative to Netron #14105
Conversation
Signed-off-by: Kazantsev, Roman <[email protected]>
This approach will work only wit MO. |
Ilya, good question. Currently, we have a problem with Netron to visualize graphs with Loops and Ifs operations because they have body graphs, etc. It is not easy to add such support to there and we should ask the main contributors to wait for this feature. Several years passed but it is still unimplemented. In the meantime, we can add it this feature very easy, it costs just couple of hours:) Really easy to maintain from our side in the centralized way. |
The only problem with TB is that you must prepare a model to visualize it by writing some code. So even if you already have a model represented as a file (IR -- in out case) it is not enough to look at it. If you have the model in Python you still need to serialize it twice -- for IR itself and to format that TB can accept. This is a major and probably deciding factor. Is it possible to implement a way to load IRs directly to TB without such pre-processing? As for the advantages of TB vs the disadvantages of Netron: could you provide example of how |
Sergey, I will add this support for Loop and If. |
This PR will be closed in 2 weeks in case of no activity. |
This PR was closed because it has been stalled for 2 week with no activity. |
No need to close. I hope to continue this effort soon:) That is especially needed for analysis of huge models. |
This PR will be closed in a week because of 2 weeks of no activity. |
This PR was closed because it has been stalled for 2 week with no activity. |
@rkazants there's a |
This PR will be closed in a week because of 2 weeks of no activity. |
This PR was closed because it has been stalled for 2 week with no activity. |
Details: Implemented alternative way to visualize IR, ov::Model via TensorBoard tool.
Implemented functionality generates TensorBoard logs for IR and ov::Model
Currently the frameworks (PyTorch, Paddle, not only TensorFlow) use TensorBoard to visualize their models. The idea is to generate TensorBoard logs for the input model and open it up via TensorBoard tool.
Here is an example for PyTorch by this link.
There is a similar way to visualize Pytorch model in TensorBoard like as follows:
In OpenVINO we have two ways to generate TB logs. The first one is using OpenVino Tools API:
The second way is using new MO option
--tensorboard_ir_logdir
.Example of how IR for FaceNet is displayed in TensorBoard:
TODO:
Ticket: TBD
Signed-off-by: Kazantsev, Roman [email protected]