下面是我编写tfrecords的代码,每个x_img都是一个数值数组,每个x_img[i]包含固定数量的img_bytes img_bytes = open(join(frames_path, vid,x_img = tf.io.decode_jpeg(x_img, channels = 3)
return x 但它返回错误: ValueError: Shape must be rank 0 but is rank 1 for 'DecodeJ
我正在尝试使用tensorflow来实现dcgan,但遇到了这个错误:From mergingshape 1 with other shapes. for 'generator/Reshape/packed' (op: 'Pack') with input shapes: [?就iv而言,它表明我的张量形状是不同的,但
我试图在这个函数中给出所有的输入,但它出现了如下问题,我不确定空[]是什么。有2个图像图像在RGB中,原始代码来自。(err.message)
ValueError: Shape must be rank 1 but is rank 0 for 'ROIAlign/Crop' (op: 'CropAndResize') with input shapes: [2,360,475,3], [1,4], [], [2].d