小编Sat*_*jus的帖子

TypeError: ('关键字参数不理解:', 'inputs')

以下代码用于使用 Tensorflow 和 Keras 使用 CNN 模型进行疾病检测。出于某种原因,我不断收到错误消息。这是一个带有参数“输入”的类型错误。我不明白为什么会引发此错误。这是我的代码:

from __future__ import absolute_import, division, print_function, unicode_literals
import numpy as np # linear algebra
import pandas as pd # data processing CSV file
import tensorflow as tf
from tensorflow.keras.layers import Dense, Flatten, Conv2D
from tensorflow.keras import Model
import cv2
import matplotlib.pyplot as plt
import seaborn as sns # seaborn is a data visualization library for python graphs
from PIL import Image
import os #file path interacting with operating system

thisFolder = os.path.dirname(os.path.realpath(__file__))

print(thisFolder) …
Run Code Online (Sandbox Code Playgroud)

python typeerror keras tensorflow

5
推荐指数
2
解决办法
2万
查看次数

标签 统计

keras ×1

python ×1

tensorflow ×1

typeerror ×1