Я запускаю следующие командные строки:
Код: Выделить всё
from tensorflow.keras.optimizers.legacy import Adam
from tensorflow.keras.preprocessing.image import load_img
%matplotlib qt
Код: Выделить всё
Import "tensorflow.keras.optimizers.legacy" could not be resolved
Import "tensorflow.keras.preprocessing.image" could not be resolved
'%matplotlib' widget works best inside of VS Code
Большое спасибо за ответ
Привет

Я пробовал запустить так:
Код: Выделить всё
import tensorflow
from tensorflow import keras
from tensorflow.python.keras import preprocessing
from tensorflow.python.keras.optimizers import adam_v2
Подробнее здесь: https://stackoverflow.com/questions/786 ... w-packages