更新时间:2023-02-26 19:01:42
我发现的一件事是:
return label, image
with tf.device('/cpu:0'):
train_img,train_label = getImage(TF_Records+"/TrainRecords")
validation_img,validation_label=getImage(TF_Records+"/TestRecords")
看起来在函数 get_image() 中,您返回标签、图像
,但是当您调用该函数时,您会反转分配.
Looks like in the function get_image() you return label, image
but when you call the function you reverse the assignments.