Closed serge1peshcoff closed 6 years ago
How much ram do you have in your system?
The alias()
use MTCNN to detect faces and it will eat lots of memory for large photos.
If you want to process a photo with the size larger than 2000x2000, You must have at least 8GB memory, or the Python might crash due to leak of memory.
@zixia 4gb according to free -m
output
# free -m
total used free shared buff/cache available
Mem: 4096 931 3164 968 0 3164
Swap: 2048 124 1923
So I believe you will be OK after upgrading your memory to 8GB(12GB is better) with a 4GB swap(optional).
@serge1peshcoff Did you solve your problem by adding more memory?
If so, please close this issue.
I eventually just wrapped my code into try/catch
statement and just restarted it if this error is occured. That works.
Provide Your Network Information
Expected behavior
Calling
facenet.align()
should return successful response for the valid imageActual behavior
Sometimes I get this (I suppose it's because the
python3
process crashed:Steps to reproduce the behavior (and fixes, if any)
Reproducing:
ps aux | grep python
and then kill the processfacenet.align()
in your appThe fix can be restarting the
python3
process on getting such an error. (No idea actually if this should belong to this repository orpython-bridge
?)Full Output Logs
See above