from keras import backend as K K.clear_session() 在model.predict()之后添加上述代码即可 参考https://stackoverflow.com/questions/57426984/cannot-interpret-feed-dict-key-as-tensor-tensor-tensorplaceholder0-shape