我试图重新创建一个程序,这是Sentdex在"python plays V“系列中做的,但当我来训练ai时,它给了我这个错误:ValueError: Cannot feed value of shape(64, 80, 60, 3) for Tensor 'input/X:0', which has shape '(?np.array([i[0]for i in train]).reshape(-1,width,height,3)
Y=[
ValueError: Cannot feed value of shape (50,) for Tensor 'upper/input/y:0', which has shape '(?我的数据大小是(2930,2,128,128),标签大小是(2930),我无法理解形状的不匹配。代码分别驱动2个通道(128,128),然后合并。我的标签包含5个类(0,1,2,3,4)。single
train = [list(l) for l in zip(data['total'], data['lines'])]
net = tflearn.input_data我认为形状应该是:无,2,因为程序中有2个功能。csv文件有4个功能。其中一个被过滤掉了。其中一个被读取为目标。我应该怎么做才能消除这个错误呢?
ValueError:无法为形状为'(?,