Comment Per object memory (Score 2) 113
20GB per 100000 objects is 209kB per object. Don't know what resolution each image was, but I think 200kB is quite small.
I've noticed several design suggestions in your code.