ZhangGe6 / onnx-modifier

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

unable to download the model onnx_modifier is not defined #80

Closed SimpleTon23 closed 10 months ago

SimpleTon23 commented 11 months 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 11 months 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 10 months ago

the same error, in windows docker.

Egorundel commented 10 months 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 10 months 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 10 months ago

@ZhangGe6 I wrote the explanation 😂 😂 😂

ZhangGe6 commented 10 months ago

@ZhangGe6 I wrote the explanation 😂 😂 😂

@Egorundel haha, thanks for clarifying again.

ZhangGe6 commented 10 months ago

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