TypeError: Expected binary or unicode string, got array
Try this:

imgs = tf.convert_to_tensor(images[0])


If all of your images are of the same shape. Otherwise you have to resize them to a same dimension then call the code.