ZhangGe6 / onnx-modifier

A tool to modify ONNX models in a visualization fashion, based on Netron and Flask.
MIT License
1.29k stars 158 forks source link

Graph modified but output is not giving #16

Closed rajan780 closed 2 years ago

rajan780 commented 2 years ago

Hi @ZhangGe6 First of all thanks for this wonderful tool. Actually i modified my graph using this tool and when i am viewing in netron it is proper but the node which i added is giving no output means i can't see what shape it output or what type it outputs it just showing the output name as text. can you please help me to fix this?

Thanks in Advance:)

ZhangGe6 commented 2 years ago

@rajan780 Thanks for your feedback. It is suggested to add a model output following the newly added node, as is illustrated here. Then the shape/type information of the newly added node output will be inferred automatically (after downloading) and shown in the added model output.

For example, we have a demo model: input->node1->node2. We add a new node node3 and get a new model input->node1->node2->node3. If we want to see the shape/type information of node3, we should click node3 and click Add Output button in the invoked sidebar. Save the modified model and open it. Then the shape/type information of node3 will show.