not sure what python library would you recommend for doing this? there is a matlab tamplate for that, but i just a bit hesitate to switch http://cs.stanford.edu/people/karpathy/cnnembed/ thanks