From e9d85be74fc79a05005ea43ec9d03d7a9d265f6e Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Thu, 9 Jul 2020 23:01:49 +0530 Subject: Publish deploy 2020-07-09 23:01 --- posts/2019-12-10-TensorFlow-Model-Prediction/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'posts/2019-12-10-TensorFlow-Model-Prediction/index.html') diff --git a/posts/2019-12-10-TensorFlow-Model-Prediction/index.html b/posts/2019-12-10-TensorFlow-Model-Prediction/index.html index 5f73c10..bf1c102 100644 --- a/posts/2019-12-10-TensorFlow-Model-Prediction/index.html +++ b/posts/2019-12-10-TensorFlow-Model-Prediction/index.html @@ -6,4 +6,4 @@

After this we create a batch consisting of only one image

p = np.expand_dims(size_image, 0)

We then convert this uint8 datatype to a float32 datatype

img = tf.cast(p, tf.float32)

Finally we make the prediction

print(['Infected','Uninfected'][np.argmax(model.predict(img))]) -

Infected

Tagged with:
\ No newline at end of file +

Infected

Tagged with: \ No newline at end of file -- cgit v1.2.3