Skip to content

Commit

Permalink
fix inception score
Browse files Browse the repository at this point in the history
  • Loading branch information
TimSalimans committed May 9, 2018
1 parent 6ac501e commit 0b7ed92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inception_score/model.py
Expand Up @@ -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)))
Expand Down

2 comments on commit 0b7ed92

@ssydasheng
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it previously a bug when "bs=100" so that you commented "fix inception"? @TimSalimans

@ssydasheng
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah I see, it was because the graph was built based on a placeholder with batch dim=1.

Please sign in to comment.