second-state / WasmEdge-WASINN-examples

Apache License 2.0
217 stars 35 forks source link

terminate called after throwing an instance of 'torch::jit::ErrorReport' terminate called recursively Aborted (core dumped) #128

Open lebron8dong opened 1 month ago

lebron8dong commented 1 month ago

python 3.8.19 pytorch 1.8.2

  1. run gen_mobilenet_model.py to generate mobilenet.pt

  2. wasmedge --dir .:. wasmedge-wasinn-example-resnet50-image.wasm mobilenet1.pt input.jpg error : terminate called after throwing an instance of 'torch::jit::ErrorReport' terminate called recursively Aborted (core dumped)

  3. when I use the pre-generate one at mobilenet.pt , it successfully execute.

hydai commented 1 month ago

I got confused by your command. Are you trying to run resnet50 with mobilenet?

lebron8dong commented 1 month ago

Sorry, I forgot to change the file name. I matched the python version and model to PyTorch 1.8.2 LTS and there were no errors.

hydai commented 3 weeks ago

Is this issue fixed? If you want to use another version of Python/PyTorch, you may need to update the related deps files.