Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Significant Memory Leak When Using OpenVino EP With ONNX Runtime For CRAFT #12307

Closed
3 tasks done
narolski opened this issue Jul 26, 2022 · 1 comment
Closed
3 tasks done
Assignees

Comments

@narolski
Copy link

narolski commented Jul 26, 2022

System information (version)
  • OpenVINO => 2022.1.0
  • Operating System / Platform => Debian Buster
  • Compiler => gcc
  • Problem classification: Model Inference
  • Framework: ONNXRuntime (1.11 or 1.12), Nvidia Triton Inference Server (22.06)
  • Model name: CRAFT (from https://github.com/clovaai/CRAFT-pytorch converted into ONNX)
Detailed description

When I use the OpenVino Execution Provider (EP) in ONNX Runtime for CPU-based inference, the memory is not de-allocated between inference sessions, causing a memory leak for inputs of various dimensions (model uses dynamic-sized inputs).

After reading #11667, I've tried to build OpenVino checking out the commit that introduced usstq@3857559, but this did not resolve the memory leak.

Steps to reproduce
  • Build ONNXRuntime 1.11 or 1.12 with --use_openvino AUTO:CPU,GPU
  • Load the CRAFT model using ONNXRuntime with OpenVino EP
  • Perform various inference requests (via Nvidia Triton Inference Server)
Issue submission checklist
  • I report the issue, it's not a question
  • I checked the problem with documentation, FAQ, open issues, Stack Overflow, etc and have not found solution
  • There is reproducer code and related data files: images, videos, models, etc.
@mohsinmx
Copy link

@narolski Can you please try inferencing with onnxruntime==1.12.0 by enabling "enable_dynamic_shapes" flag to true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants