-
Notifications
You must be signed in to change notification settings - Fork 45.9k
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
ModuleNotFoundError: No module named 'tensorflow.python.keras.applications' #10480
Comments
This is related to #10479 |
I got that error also. But when I run it for an image detection, i got this error message: 4 frames UnimplementedError: Exception encountered when calling layer "Conv1" (type Conv2D). Is this error due to new release of tensorflow? |
After doing This is related to #10479 REQUIRED_PACKAGES = [
|
@qlzh727 Keras team may help take a look. |
tensorflow.python.keras package is deprecated and being removed. The keras project code is moved to keras-team/keras. You should only access the public keras API via tf.keras.applications.*. |
@qlzh727 Would you provide an example? Confused which commands are not allowed and which commands are allowed. |
Allowed:
Not Allowed:
The only difference here is accessing tensorflow.python.keras package directly. |
@qlzh727 thank you very much. this really clarified what to use and what not to use. |
1. The entire URL of the file you are using
https://github.com/tensorflow/models/blob/master/research/object_detection/model_main_tf2.py
2. Describe the bug
After the latest release there is a ModuleNotFoundError after following the Python Package Installation Instructions
3. Steps to reproduce
python object_detection/builders/model_builder_tf2_test.py
4. Temporal workaround
After cloning the repository, go to object_detection/models/keras_models/resnet_v1.py and comment line 22. Then proceed building as usual with the setup.py (Note that this may cause many errors that I am not taking into account, but it served for my purpose of traning an efficientDet model).
5. System information
The text was updated successfully, but these errors were encountered: