Open ireneb612 opened 2 years ago
Dear @ireneb612 , I recommend you using Tensorflow 1.14 to run this demo
@Svito-zar I tried to run everything with tensorflow 1.14, but I git these errors. Now file seams to be created.
8 s
! ./generate.sh data/audio3_20sec.wav
Encoding audio ...
WARNING:root:frame length (2940) is greater than FFT size (512), frame will be truncated. Increase NFFT to avoid.
WARNING:root:frame length (2940) is greater than FFT size (512), frame will be truncated. Increase NFFT to avoid.
Predicting motion encoding ...
Traceback (most recent call last):
File "predict.py", line 8, in
DAE with the following shape was created : [138, 112, 138] 2022-01-10 16:37:30.594192: W tensorflow/compiler/jit/mark_for_compilation_pass.cc:1412] (One-time warning): Not using XLA:CPU for cluster because envvar TF_XLA_FLAGS=--tf_xla_cpu_global_jit was not set. If you want XLA:CPU, either set that envvar, or use experimental_jit_scope to enable XLA:CPU. To confirm that XLA is active, pass --vmodule=xla_compilation_cache=1 (as a proper command-line flag, not via TF_XLA_FLAGS) or set the envvar XLA_FLAGS=--xla_hlo_profile. Initializing variables ...
Model restored from the file models/DAE_checkpoints/chkpt-final.
Traceback (most recent call last):
File "decode_motion.py", line 380, in
Thank you for the info, @ireneb612 .
It seem that the issue is in the incompatibility between Tensorflow and Keras versions: from tensorflow.python.eager.context import get_config ImportError: cannot import name 'get_config' from 'tensorflow.python.eager.context'
These StackOverFlow issues seems to be the same one as you are facing:
https://stackoverflow.com/questions/66964492/importerror-cannot-import-name-get-config-from-tensorflow-python-eager-conte
https://stackoverflow.com/questions/69250228/importerror-cannot-import-name-get-config-from-tensorflow-python-eager-conte
I hope you can find the solution there
Hi, the tensorflow version seems to be too old, thus the script doesn't work. on Colab Is there a way you could check how to update the tensorflow version?