onnx / onnx/models

onnxruntime.InferenceSession silent error when ran in cgi python script

Open
#230 12 comments 0 reactions 1 assignee View on GitHub

@faxu is already working on this.

Since Oct 31, 2019.

Dominant language
Jupyter Notebook
Stars
9.8k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

I am using an optimized model (it was optimized by onnx.optimize). When I run the same script with the same model and same python manually (without apache2 cgi) it works well. When I call the same code through cgi, onnxruntime.InferenceSession silently exits, so I can see all of the debug print outs in my browser before the command, but nothing after. Also the apache2 logfile does not contain any error.
When I ran non optimized model the errors appear in the apache2 log file during creation of the session by onnxruntime.InferenceSession. Any thoughts? How to troubleshoot what is going on inside of onnxruntime.InferenceSession?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.