You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Application: Lightglue model for image registration, the input is a fixed-size image, the output is a dynamic shape. Openvino has a memory leak, I hope to solve this problem
Application: Lightglue model for image registration, the input is a fixed-size image, the output is a dynamic shape. Openvino has a memory leak, I hope to solve this problem
The text was updated successfully, but these errors were encountered:
ZzhangYyan
changed the title
[Feature Request] 一个动态输入和动态输出的模型 例如lightglue。用openvino推理完毕后,会出现内存泄漏的情况。
[Feature Request] A model with dynamic input and dynamic output, such as Lightglue, will have a memory leak after inference with Openvino.
Mar 25, 2025
ZzhangYyan
changed the title
[Feature Request] A model with dynamic input and dynamic output, such as Lightglue, will have a memory leak after inference with Openvino.
[Feature Request] A model with dynamic input and dynamic output。 will have a memory leak after inference with Openvino.
Mar 25, 2025
Describe the feature request
Application: Lightglue model for image registration, the input is a fixed-size image, the output is a dynamic shape. Openvino has a memory leak, I hope to solve this problem
Model source:https://github.com/fabio-sim/LightGlue-ONNX/releases/tag/v1.0.0
Openvino version is 2024.3.0.
code:
std::vector ApplyTransform1(const cv::Mat& image, float& mean, float& std)
{
cv::Mat resized, floatImage;
image.convertTo(floatImage, CV_32FC1);
mean = 0.0f;
std = 0.0f;
cv::Scalar meanScalar, stdScalar;
meanStdDev(floatImage, meanScalar, stdScalar);
mean = static_cast(meanScalar.val[0]);
std = static_cast(stdScalar.val[0]);
}
void MatchEnd2EndInf::SetImgInTensor(const cv::Mat& img, ov::Tensor& tensor)
{
std::vector imgData;
cv::Mat grayImg;
float mean, std;
}
void MatchEnd2EndInf::Infer(const cv::Mat& baseImg, const cv::Mat& testImg, cv::detail::MatchesInfo& matches_info)
{
std::chrono::steady_clock::time_point startTime;
std::chrono::steady_clock::time_point endTime;
std::chrono::duration<double, std::milli> duration;
int nElapsedTime;
int hh = 0, ww = 0;
ov::Shape shape1 = ov::Shape(4);
ov::Shape shape2 = ov::Shape(4);
Describe scenario use case
Application: Lightglue model for image registration, the input is a fixed-size image, the output is a dynamic shape. Openvino has a memory leak, I hope to solve this problem
The text was updated successfully, but these errors were encountered: