estoy tratando de importar
import tensorflow.python.keras.applicationspero da el siguiente error:
ModuleNotFoundError: No module named 'tensorflow.python.keras.applications'mi versión de TensorFlow es 2.8.0 y la versión de Keras es 2.8.0
Intente usar import keras.applications en lugar de import tensorflow.python.keras.applications
mi solución fue degradar tensorflow a 2.7
!pip desinstalar tensorflow !pip instalar tensorflow==2.7
No es necesario degradar o desinstalar tensorflow. La resolución de este error reside en el archivo resnet_v1.py. Cambié la siguiente línea:
from tensorflow.python.keras.applications import resnetpara
from tensorflow.keras.applications import resnety se resolvió porque tensorflow.python está en desuso hace mucho tiempo.