From 0b7ed92e47ff7047701be3e10a3bd6363999f5e7 Mon Sep 17 00:00:00 2001 From: TimSalimans Date: Wed, 9 May 2018 13:32:56 -0700 Subject: [PATCH] fix inception score --- inception_score/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inception_score/model.py b/inception_score/model.py index 2f1c90d..0d4d868 100644 --- a/inception_score/model.py +++ b/inception_score/model.py @@ -31,7 +31,7 @@ def get_inception_score(images, splits=10): for img in images: img = img.astype(np.float32) inps.append(np.expand_dims(img, 0)) - bs = 100 + bs = 1 with tf.Session() as sess: preds = [] n_batches = int(math.ceil(float(len(inps)) / float(bs)))