Numpy array/asarray leak?
Try scenario 2 as:
temp = PIL.Image.open(im)del imtemp2 = np.array(temp) temp2 = Nonedel tempdel temp2gc.collect()
Try scenario 2 as:
temp = PIL.Image.open(im)del imtemp2 = np.array(temp) temp2 = Nonedel tempdel temp2gc.collect()