AliaksandrSiarohin / pose-gan

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

there is a bug in inception_score.py

wxh001qq opened this issue · comments

i run the code under your instructions, but i meet this bug:
File "/home/wuxuehui/research/clothes/pose-gan/gan/inception_score.py", line 92, in _init_inception
logits = tf.matmul(tf.squeeze(pool3), w)
File "/home/wuxuehui/py2_env/venv/local/lib/python2.7/site-packages/tensorflow/python/ops/math_ops.py", line 2122, in matmul
a, b, transpose_a=transpose_a, transpose_b=transpose_b, name=name)
File "/home/wuxuehui/py2_env/venv/local/lib/python2.7/site-packages/tensorflow/python/ops/gen_math_ops.py", line 4279, in mat_mul
name=name)
File "/home/wuxuehui/py2_env/venv/local/lib/python2.7/site-packages/tensorflow/python/framework/op_def_library.py", line 787, in _apply_op_helper
op_def=op_def)
File "/home/wuxuehui/py2_env/venv/local/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 3392, in create_op
op_def=op_def)
File "/home/wuxuehui/py2_env/venv/local/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1734, in init
control_input_ops)
File "/home/wuxuehui/py2_env/venv/local/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1570, in _create_c_op
raise ValueError(str(e))
ValueError: Shape must be rank 2 but is rank 1 for 'MatMul' (op: 'MatMul') with input shapes: [2048], [2048,1008].

What is the version of tensorflow?

the version of tf is 1.5.0

This inception_score.py script is just copy past of original openai script. You try to check this stream biuyq/CT-GAN#5. Or remove completely inception score evaluation, it is useless anyway.

thanks