且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

ConvNN Tensorflow 中奇怪的准确度结果

更新时间: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.