I am using webcam_face_recognition with Dlib which recursively calls for (auto face : rects)
{
auto shape = sp(img, face);
matrix<unsigned char> face_chip;
extract_image_chip(img, get_face_chip_details(shape,150,0.25), face_chip);
faces.push_back(move(face_chip));
}
this snippet over and over which causes memory leak. When I comment out the snippet, no memory leakage.
I am using Dlib 19.19 on Jetson Xavier (Jetpack 4.3) with Ubuntu 18.04
Last edit: abuxhuv 2020-01-05
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am using webcam_face_recognition with Dlib which recursively calls
for (auto face : rects) { auto shape = sp(img, face); matrix<unsigned char> face_chip; extract_image_chip(img, get_face_chip_details(shape,150,0.25), face_chip); faces.push_back(move(face_chip)); }
this snippet over and over which causes memory leak. When I comment out the snippet, no memory leakage.
I am using Dlib 19.19 on Jetson Xavier (Jetpack 4.3) with Ubuntu 18.04
Last edit: abuxhuv 2020-01-05
That loop is appending to faces, making it bigger, and causing more RAM to
be used.