Closed ALEXKIRNAS closed 5 years ago
what version of Pillow are you using? Pillow==5.0.0 has a memory leak issue (https://github.com/python-pillow/Pillow/issues/2972)
There is a memory leak indeed in the tensorflow section. Thanks for pointing that out. It does not seem to appear in the numpy section, as replacing the "while True" with:
from jpeg2dct.numpy import loads
while True:
loads(images_strings[0])
seems to be allright
a new version has been released 0.2.4. I did not notice any memory leak after that modification. Let us know if you still face the same problem with that new version.
Seems that the issue is solved! Thanks for quick response.
Hi! I have tried to use your lib to train network on DCT inputs and bumped into memory leakage issue. I use Tensorflow operation to read DCT image from jpeg bytes. Here some useful info and dummy sample to reproduce the issue:
System information
Packages information
Code to reproduce
After several minutes script will be killed by OS due to extremely large memory usage.