使用的是TF2
from keras.preprocessing.image import ImageDataGenerator, image
出现报错
ImportError: cannot import name 'image' from 'tensorflow.keras.preprocessing.image' (D:\anaconda\lib\site-packages\tensorflow_core\python\keras\api\_v2\keras\preprocessing\image\__init__.py)
导致后面 img = image.load_img(省略)用不了