Hi all,
So I’ve tried this but the dtype of img_patches is still ‘O’ which can not do the conversion.
for i in xrange(len(img_patches)):
for j in xrange(len(img_patches[i])):
img_patches[i][j].astype(float)
Thanks so much in advance!