A_path = os.path.join(path, 'A') #定义样本路径
B_path = os.path.join(path, 'B')
#获取该路径下的png文件
A_fnames, B_fnames = glob.glob(A_path + '/*.png'), glob.glob(B_path + '/*.png')
# src = cv2.imread(A_fnames[0])
# cv2.imshow('111', src)
# cv2.waitKey(0)
# cv2.destroyAllWindows()
#生成DataSet对象
dataset = tf.data.Dataset.from_tensor_slices((A_fnames, B_fnames))
打断点再前面时,
我用opencv看过A_fnames, B_fnames中的图片是能正常获取的 ,
为啥我再from_tensor_slices 会不成功呢