ZhangGe6 / onnx-modifier

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

unable to download the model onnx_modifier is not defined #80

Closed SimpleTon23 closed 1 year ago

SimpleTon23 commented 1 year ago
image

I haven't chaned anything , opened the onnx file and trying to click download and i am getting this error. Can you help why this is happening

ZhangGe6 commented 1 year ago

@SimpleTon23 Thanks for reporting. Which platform are you using? I have tried Windows, MacOS, and Ubuntu(16.04), but can not reproduce this issue.

beingjoey commented 1 year ago

the same error, in windows docker.

Egorundel commented 1 year ago

The problem was solved quite simply: just downgrade the onnx version. I installed pip install onnx==1.13.0 and everything worked for me without errors.

ZhangGe6 commented 1 year ago

@Egorundel Thanks for clarifying!

@SimpleTon23 @beingjoey Please check the Python package versions. If this issue is caused by Python package versions, the following version config should work:

onnx==1.13.0
flask==2.2.5
onnx-tool==0.8.1
Egorundel commented 1 year ago

@ZhangGe6 I wrote the explanation 😂 😂 😂

ZhangGe6 commented 1 year ago

@ZhangGe6 I wrote the explanation 😂 😂 😂

@Egorundel haha, thanks for clarifying again.

ZhangGe6 commented 1 year ago

I am going to close the issue. Feel free to reopen it if the problem still exists.