Closed MahmoudMoumni closed 21 hours ago
I don't know what's inside the face_recognition
. Please post a minimal example that uses just dlib and shows a memory leak. I strongly expect there isn't a leak in the dlib part of this :)
Dear Mr Davis
Please check this link for the issue https://github.com/davisking/dlib/issues/2960 You can see that the face_encoder is an instance of dlib.face_recognition_model_v1 and im using the compute_face_descriptor from dlib.face_recognition_model_v1
I will send you another example not including mediapipe so you can run it easily.
Thanks for’ replying
Sincerely Mahmoud
On Sat, 1 Jun 2024 at 14:02, Davis E. King @.***> wrote:
I don't know what's inside the face_recognition. Please post a minimal example that uses just dlib and shows a memory leak. I strongly expect there isn't a leak in the dlib part of this :)
— Reply to this email directly, view it on GitHub https://github.com/davisking/dlib/issues/2960#issuecomment-2143423817, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJDEJUZTLJP5IKNXHMU5XXLZFGZ7DAVCNFSM6AAAAABIPNXDGGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBTGQZDGOBRG4 . You are receiving this because you authored the thread.Message ID: @.***>
Depending on what all is happening, you may also be noticing that the cuda runtime is holding onto memory. There is some amount of that that is uncontrollable. It's not a leak and not something to worry about.
Dear Mr David,
The amount of memory that’s not released is almost 1GB , and im working on a software that uses face authentication, this memory won’t be released after i finish the face authentication process and since im working on jetson nano (4GB ram ) it will be very important to just load and use authentication and then release memory for the rest of pipeline , while this is not happening!
I will create a very simple script and print the ram at different stages and send it to you.
I think its very important to release memory when the scope finishes and im trying my best with source code to check which part is holding that memory !
I will get back to you soon
On Sat, 1 Jun 2024 at 14:28, Davis E. King @.***> wrote:
Depending on what all is happening, you may also be noticing that the cuda runtime is holding onto memory. There is some amount of that that is uncontrollable. It's not a leak and not something to worry about.
— Reply to this email directly, view it on GitHub https://github.com/davisking/dlib/issues/2960#issuecomment-2143431539, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJDEJUYCPWVBOB3QSPIM5GDZFG47PAVCNFSM6AAAAABIPNXDGGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBTGQZTCNJTHE . You are receiving this because you authored the thread.Message ID: @.***>
Warning: this issue has been inactive for 35 days and will be automatically closed on 2024-07-16 if there is no further activity.
If you are waiting for a response but haven't received one it's possible your question is somehow inappropriate. E.g. it is off topic, you didn't follow the issue submission instructions, or your question is easily answerable by reading the FAQ, dlib's official compilation instructions, dlib's API documentation, or a Google search.
Warning: this issue has been inactive for 42 days and will be automatically closed on 2024-07-16 if there is no further activity.
If you are waiting for a response but haven't received one it's possible your question is somehow inappropriate. E.g. it is off topic, you didn't follow the issue submission instructions, or your question is easily answerable by reading the FAQ, dlib's official compilation instructions, dlib's API documentation, or a Google search.
Notice: this issue has been closed because it has been inactive for 45 days. You may reopen this issue if it has been closed in error.
What Operating System(s) are you seeing this problem on?
Linux (aarch64)
dlib version
19.21.0
Python version
3.6.9
Compiler
gcc (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04) 7.5.0
Expected Behavior
The function compute_face_descriptors should release memory after execution,but i's not the case
Current Behavior
compute_face_descriptors is not releasing memory when being used in another thread
Steps to Reproduce
Anything else?
No response