question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to render custom ONNX annotations

See original GitHub issue

Hi! First of all, thank you for making Netron and sharing it with the community. We use Netron in our quantized neural network compiler FINN (https://github.com/Xilinx/finn) to visualize ONNX, including as part of Jupyter notebook visualizations and it’s been immensely useful.

I would like to extend Netron to render some ONNX annotations but I don’t know where to start, so I thought I’d ask for some help here first. In our project we work with few-bit integer tensors and we use custom tensor annotations in ONNX to represent them, by using the ONNX quantization_annotation field to carry strings that indicate the datatype. I want to add the possibility of visualizing the tensor quantization annotation next to (or instead of) the tensor shapes that are printed, something like this:

Screenshot from 2020-07-07 14-49-08-edited

How would I go about doing something like this? Any tips would be highly appreciated!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
lutzroedercommented, Jul 7, 2020

This would be somewhat in line with how quantization information is rendered for other formats: screenshot

0reactions
maltanarcommented, Jul 7, 2020

Fantastic, thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Estimating Depth with ONNX Models and Custom Layers ...
This command parses the input ONNX graph layer by layer using the ONNX Parser. The trtexec tool also has the option --plugins to...
Read more >
Export to ONNX with all tensor shapes included #52914 - GitHub
The PyTorch exporter supports custom op registration with shape and type inference info via Python (example), but I believe ONNX shape inference ...
Read more >
Transfer Learning with ONNX — onnxcustom
Retrieve and load a model · Classifying an image · Classifying more images · Transfer learning in a pipeline. Graph for the PCA....
Read more >
Classify a Bitmap with your downloaded Custom Vision ONNX ...
Visit the Custom Vision portal. · Select the Performance page. · Use the Export button to download a zip file containing your model....
Read more >
Auto Annotation using ONNX and YOLOv7 model (Object ...
Annotation is very boring work, so I think that can we use our custom trained model (ONNX model) to annotate our new Data....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found