当我试图导入resnet50时,它显示“没有名为”keras.applications.resnet50”的模块”

ipakzgxi  于 2022-11-13  发布在  其他
关注(0)|答案(1)|浏览(474)

line 6, in <module> from keras.applications.resnet50 import ResNet50, preprocess_input ModuleNotFoundError: No module named 'keras.applications.resnet50'

`import numpy as np
import pickle
from keras.applications.resnet50 import ResNet50, preprocess_input
from keras.preprocessing import image
from keras.models import Model, load_model
from keras.preprocessing.sequence import pad_sequences`

我尝试安装各种版本的keras,但它不工作

pcww981p

pcww981p1#

from tensorflow.keras.applications.resnet50 import ResNet50

相关问题