Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

keras model predict list of input tensors

test_batch = tf.stack([img_tf1, img_tf2])
# or
test_batch = np.vstack([imgs_tf1, img_tf2])

test_batch_size = 32
predictions = model.predict(test_batch, batch_size=test_batch_size)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #keras #model #predict #list #input #tensors
ADD COMMENT
Topic
Name
9+3 =