Skip to content
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

input_1:0 is both fed and fetched. #15

Closed
dimaxano opened this issue Oct 3, 2018 · 2 comments
Closed

input_1:0 is both fed and fetched. #15

dimaxano opened this issue Oct 3, 2018 · 2 comments

Comments

@dimaxano
Copy link

dimaxano commented Oct 3, 2018

I'm running this command

CUDA_VISIBLE_DEVICES=0 test.py --generator_checkpoint checkpoints/market/generator-no-warp.h5 --warp_skip none --dataset market

But I'm getting error

input_1:0 is both fed and fetched

tf==1.11.0
keras==2.2.3

Is there any ideas of how to solve it?

@AliaksandrSiarohin
Copy link
Owner

It seems like in new tensorflow you can not return the input. You can alternatively try (in line 142 conditional_gan.py)

outputs = [input_img] + input_pose + [out, output_pose] + bg_img + warp_in_disc
outputs = [keras.layers.Lambda(lambda x: ktf.identity(x))(out) for out in outputs]

I did not try this, so no idea if it works or no.
So the simplest way would be to install the version I use:
I use: tf==r1.3, keras==2.0.8

@dimaxano
Copy link
Author

dimaxano commented Oct 3, 2018

That works for me! Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants