How to add a node to the end of a graph
See original GitHub issueI am using PyTorch to export a model, but the exporter does not export NMS. So one solution is for me to export before NMS and then add NMS node = onnx.helper.make_node('NonMaxSuppression') manually after loading the exported model.
Issue Analytics
- State:
- Created 4 years ago
- Comments:22 (3 by maintainers)
Top Results From Across the Web
inserting a node at the end of a linked list in c - Log2Base2
1. Declare head pointer and make it as NULL. · 2. Create a new node with the given data. And make the new...
Read more >Adding and deleting nodes in a graph | Gephi Cookbook
Go to the Data Laboratory mode in Gephi. · Click on the Add Node button in the top panel. This opens the Add...
Read more >How to add new nodes to an existing graph with fixed ...
Click -> select a node · Click again -> unselect · Click no other node -> create new node between · New node...
Read more >Insertion and deletion of nodes and edges in a graph using ...
press 1 to insert a node 2.press 2 to delete a node 3.press 3 to insert an edge 4.press 4 to delete an...
Read more >Modify Nodes and Edges of Existing Graph - MathWorks
Create a graph with four nodes and four edges. The corresponding elements in s and t specify the end nodes of each graph...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Got it. Thanks again for all the help @dashesy
As an aside, I dug a bit more into the onnx docs and found this to be quite useful: https://github.com/onnx/onnx/blob/master/docs/IR.md
It doesn’t cover specific examples of how to do things, but it clarified a number of concepts for me. In the end, I was able to attach a
NonMaxSuppressionop withscore_threshold,iou_threshold, andmax_output_boxes_per_classas constant values, and pass the onnx checker as well. For whoever it might help in the future, here’s the full code that worked for me, when going from an onnx model that currently outputs decoded bboxes and scores:onnx version: 1.7.0 pytorch version: 1.4.0
First way: If you want to
add a node to the end of a graph, useonnx.helperto make a node and append to model.graph.node is right way. Don’t forget to modifygraph.outputalso. Second way: modify your code, add support to exportnmsto exporter.