-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValueError: Cannot feed value of shape (50, 128, 128, 3) for Tensor 'FID_Inception_Net/ExpandDims:0', which has shape '(1, ?, ?, 3) #6
Comments
Hi! |
Hi, I also noticed that it is not possible to change shapes of tensors which were created with I changed the Here is my function.
I suspect the returned FID scores are still correct, but I haven't checked against reported scores. |
It seems to match my previous results! Thanks. |
@foofighter112 : Thanks! Would it be ok for you if I adopt your solution after doing some correctness tests? |
Of course!
… On 15 May 2018, at 10:23, HRamses ***@***.***> wrote:
@foofighter112 : Thanks! Would it be ok for you if I adopt your solution after doing some correctness tests?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@foofighter112 I find it work well for me, Thanks! |
@foofighter112 I test your code with batch size 128 on cifar10 real data and get FID of 7.2 Then I test original code with batch size 1 on cifar10 real data and get FID of 7.1 so your code works well. (I randomly select 10000 images from [0, 25000) and [25000. 50000) in training data and test the FID.) |
@foofighter112 I used your code, but it still doesn't work. My Tf is 1.4.0 |
Tensorflow version 1.4.0, still get the same error |
@WillSuen I got the same issue on 1.4.0. Super slow running speed when using batch size 1. |
Hi.. I'm a little new to python.. where exactly should this be changed?? |
replace |
I am still having this issue, this fix didnt work changing the batch size to 1 also didnt work |
It worked for tf 1.5.0 + python 3.6.7 |
it works for tensorflow 1.14.1 python3.5 |
|
when using two image files to compute FID, the code use get_activations_from_files() ,there is maybe a mistake in 222 "n_batches = n_imgs//batch_size + 1". I think '+1' should be removed. |
I met a error for 'tf.Tensor._shape cannot be assigned', so I change the
o._shape = tf.TensorShape(new_shape)
to
o.set_shape(tf.TensorShape(new_shape))
mentioned by another project's commitUnfortunately, this work fine for above project, but this time I still get a
ValueError: Cannot feed value of shape (50, 128, 128, 3) for Tensor 'FID_Inception_Net/ExpandDims:0', which has shape '(1, ?, ?, 3)
.I find if I print the tensor shape use
get_shape()
before and after theset_shape
call in function_get_inception_layer
, the Tensor shape don't change. It seems theset_shape
don't work.Does anyone have any ideas? Thanks
The text was updated successfully, but these errors were encountered: