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

I have trouble about these two Examples help #6

Open
francistwwwww opened this issue Jul 12, 2017 · 3 comments
Open

I have trouble about these two Examples help #6

francistwwwww opened this issue Jul 12, 2017 · 3 comments

Comments

@francistwwwww
Copy link

  1. python run_train.py --style style/wave.jpg --output model --trainDB train2014 --vgg_model pre_trained_model
    • AttributeError: module 'tensorflow' has no attribute 'batch_matmul'
  2. python run_test.py --content content/female_knight.jpg --style_model models/wave.ckpt --output result.jpg
    • AttributeError: module 'tensorflow' has no attribute 'pack'
@hwalsuklee
Copy link
Owner

Those are caused by tensorflow version mismatch.
I think you're using tensorflow version over 1.0

Please check https://www.tensorflow.org/install/migration

  1. tf.pack must be changed into tf.stack for tensorflow version over 1.0
  2. tf.batch_matmul must be changed into tf.matmul for tensorflow version over 1.0

Or wait for a while until I update codes to be compatible to tensorflow version over 1.0
(I plan to update codes today :D )

@francistwwwww
Copy link
Author

Thank you hwalsuklee,
You are so nice. Yes, I just pip install tensorflow, and the version should be over 1.0. Waiting for your updated code and thank you all for your contribution again ^^

@hwalsuklee
Copy link
Owner

Hey! check the code :D

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