[Python] ImportError: cannot import name 'applications' from 'tensorflow.python.keras'

Discussão em 'Python' iniciado por Stack, Maio 19, 2025.

  1. Stack

    Stack Membro Participativo

    I am encountering issues importing the applications library to utilize the EfficientNetB0 model in an image classification model training.

    I have reviewed the TensorFlow documentation, and supposedly, I should use the following line of code: from tensorflow.keras import applications. However, a warning message appears stating that this library cannot be located within tensorflow.keras. Attached is the message: Import "tensorflow.keras" could not be resolvedPylancereportMissingImports and the code: from tensorflow.keras import applications.

    Continue reading...

Compartilhe esta Página