-
Notifications
You must be signed in to change notification settings - Fork 825
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
Is there any "neural_style.py" for TensorFlow 2.0? #93
Comments
you should be able to just run this version in tf2.0. You’ll get some warnings but it works fine. at some point they may actually deprecate tf1 functions but for now it works fine. |
Not true. Do not runs. Error with session
…On 19/10/19 01:39, Derrick Schultz wrote:
you should be able to just run this version in tf2.0. You’ll get some
warnings but it works fine. at some point they may actually deprecate
tf1 functions but for now it works fine.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#93?email_source=notifications&email_token=ANMH3PJBUD773YO6EVNBFITQPJJN7A5CNFSM4I5GJOUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBWS4KQ#issuecomment-544026154>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANMH3PIQNWJ3CZ6LGXTTMRTQPJJN7ANCNFSM4I5GJOUA>.
|
runs perfectly fine!!! |
I get an exception when using the latest Tensorflow 2.x version. After downgrading via Exception: |
Yeah, it still doesn't run even after using the tf_upgrade_v2 script because of a fully deprecated function in there called contrib(). Unlike the rest of the deprecated functions that just have new syntax that can be easily swapped out, it has to be fixed on a case-by-case basis. I tried for a little bit, but I have zero experience with the TensorFlow framework, so I eventually gave up and just downgraded to tensorflow 1.15. |
Add "import tensorflow.compat.v1 as tf" to "neural_style.py" |
There is a script (tf_upgrade_v2 ) to convert "neural_style.py" from TensorFlow 1.X to TensorFlow 2.0 but the result script do not runs.
The text was updated successfully, but these errors were encountered: