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

wrong prepare_image call in CPU mode #1

Open
ValYouW opened this issue Dec 17, 2017 · 1 comment
Open

wrong prepare_image call in CPU mode #1

ValYouW opened this issue Dec 17, 2017 · 1 comment

Comments

@ValYouW
Copy link

ValYouW commented Dec 17, 2017

Hi,

In test.py in CPU mode the call to prepare_image line (178 and 179) returns wrong image shape due to wrong data_format.
To fix just pass the data_format para:

style_image = prepare_image(style_image, True, data_format)
content_image = prepare_image(content_image, True, data_format)
@haonguyen1107
Copy link

I have followed you but got this error
ValueError: Cannot feed value of shape (2, 3, 380, 600) for Tensor 'Placeholder:0', which has shape '(?, ?, ?, 3)'

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