-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Goturn tracker fails to allocate 95GB of RAM #2426
Comments
Having the same issue with python as well. Same OpenCV version.
I wonder what other similarities we have, we appear to be the other ones having this specific issue. |
Tested:
|
So it appears that the bounding box is growing large enough to cause the memory issue. I'm going to try to limit its size and see if that fixes the issue (no clue how to actually do that).
|
the culprit of the problem for OpenCV 4.2.0 is not in inference itself. Loading caffe model causes the error. It doesn't reach the inference at all. |
Works fine with python2.7 and openCV3.X.X |
can be reproduced with opencv4.x like:
|
Same issue with python as well : OS: Arch Windows 64bit Any idea on how to fix this ? |
Please try patch from here: opencv/opencv#16617 |
Hi! As a temporal workaround please try to comment the following lines: input: "data1"
# input_dim: 1
# input_dim: 3
# input_dim: 227
# input_dim: 227
input: "data2"
# input_dim: 1
# input_dim: 3
# input_dim: 227
# input_dim: 227 Sorry for inconvenience! import numpy as np
import cv2 as cv
net = cv.dnn.readNet('goturn.prototxt', 'goturn.caffemodel')
inp0 = np.random.standard_normal([1, 3, 227, 227]).astype(np.float32)
inp1 = np.random.standard_normal([1, 3, 227, 227]).astype(np.float32)
net.setInput(inp0, "data1")
net.setInput(inp1, "data2")
net.forward() |
The error dismissed once I commented on lines in the |
System information (version)
Detailed description
I have tried to use goturn tracker and it fails with error not being able to allocate 95GB of memory.
I have compiled the OpenCV with CUDA enabled flags, however goturn fails with the same error if I use non CUDA enabled OpenCV build
I have used caffe prototxt and caffemodel files available.
Steps to reproduce
Error
The text was updated successfully, but these errors were encountered: