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
which version of keras is used by latest kws_streaming #66267
Comments
@andrewmabc Could you refer to this for more information on kws_streaming. |
Thanks for your reply. I have read the webpage of 'Streaming Aware neural network models'. I just want to run jupyter sample code of 'Quick onboarding with toy demo'. I think I should install correct packages. But I can't get the reason why utils.to_streaming_inference() can't return in 02_inference.ipynb. |
@andrewmabc Could you try with Keras 3 as tf_keras will be legacy Keras? |
I use keras 3 and don't install tf_keras. 00_check_data.ipynb report error when executing fourth cell. The fourth cell is : import tensorflow as tf Reported error message : import tensorflow as tf
|
Hi @andrewmabc , I have checked the requirements.txt file from kws_streaming and it is using We are not supporting kws_training repo here. If you have any issues on same please report at concern repo. Thanks! |
what/where is concern repo? From the issue(google-research/google-research#783, rybakov said, 'use tf-nightly. kws_streaming is always in sync with the latest version of tf-nightly,' But in the file of requirements.txt, the version of tf_nightly is too old. |
I think you need to raise an issue there itself. The attached issue is quiet older and may be current issue is fresh. Kindly make a note that if other libraries has dependency on TF or keras and its not working then it should be addressed there itself. May be they will communicate internally or do required changes. I suggest you raise an issue there and let hear the reply from there. |
Thanks for your reply. But I still don't understand what is concern repo. How can I raise an issue on the concern repo? |
Please note that kws_streaming is not a dependency of keras.May be it is using keras but not vice versa. You may please raise the issue in google-research repo and let's hear from there. |
Thanks for your reply. I raise the same issue in google-research repo.(google-research/google-research#2051) |
I'm trying to run kws_streaming's 00_check_data.ipynb/01_train.ipynb/02_inference.ipynb.
docker image tensorflow/tensorflow:nightly-gpu-jupyter is used to run the demo. And the following packages are installed via pip:
tf-model-optimization-nightly
tf-keras-nightly
tfa-nightly
scipy
pydot
graphviz
The following package is install via apt-get:
apt-get install graphviz
tf._keras_internal.utils.control_flow_util.smart_cond is replaced by tensorflow.python.keras.utils.control_flow_util.smart_cond.
tf._keras_internal.models._clone_layers_and_model_config is replaced by tensorflow.python.keras.models._clone_layers_and_model_config.
tf._keras_internal.models._clone_layer is replaced by tensorflow.python.keras.models._clone_layer.
tf._keras_internal.engine.functional.reconstruct_from_config is replaced by tensorflow.python.keras.engine.functional.reconstruct_from_config.
If TF_USE_LEGACY_KERAS=1, 01_train.ipynb can be run successfully. But the following calling is always running infinitely, i.e. don't stop. Why?
model_non_stream = utils.to_streaming_inference(model_non_stream_batch, flags, Modes.NON_STREAM_INFERENCE)
For the latest kws_streaming, tf.keras.backend.learning_phase() is called in several python files. It seems tf_keras should be used instead of keras 3.
If TF_USE_LEGACY_KERAS=0, 01_train.ipynb/02_inference.ipynb report error.
which version is used, keras 3 or tf_keras?
kws_streaming @rybakov
The text was updated successfully, but these errors were encountered: