tensorflow_models
must be imported before tf_keras
to be able to load model
#13568
Open
3 tasks done
Labels
models:official
models that come under official repository
stat:awaiting response
Waiting on input from the contributor
type:bug
Bug in the code
Prerequisites
Please answer the following questions for yourself before submitting an issue.
1. The entire URL of the file you are using
https://github.com/tensorflow/models/tree/master/official/...
2. Describe the bug
I trained a model, and saved it using
On loading,
tensorflow_models
must be imported beforetf_keras
for model loading to run without error3. Steps to reproduce
4. Expected behavior
tensorflow_models
may not need to be imported for model loading to work, or the import order betweentensorflow_models
andtf_keras
does not matter.5. Additional context
Include any logs that would be helpful to diagnose the problem.
6. System information
pip install tf-models-nightly
Collect system information using our environment capture script.
https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh
You can also obtain the TensorFlow version with:
TensorFlow 1.0
python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"
TensorFlow 2.0
python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"
v1.12.1-125261-g5c7cbdd5516 2.20.0-dev20250423
The text was updated successfully, but these errors were encountered: