Memory Error While Converting List To Numpy Array
I've got a total of around 7000 images from which I'm extracted HoG features. I then want to convert the list into an np array for further processing. But I get a memory error duri
Solution 1:
For RGB or RGBA images you need only 8 bits per value, and when using float
you are alocating 64 bits per value. Try using np.uint8
instead:
img_hogs = np.array(tmp_hogs, dtype=np.uint8)
Post a Comment for "Memory Error While Converting List To Numpy Array"