PFLD_68points_Pytorch icon indicating copy to clipboard operation
PFLD_68points_Pytorch copied to clipboard

test代码的算error分母好像不对

Open Incandescenced1 opened this issue 2 years ago • 1 comments

分母应该是样本的个数,但是代码写的是len(dataloader)*args. batchsize 这个要比样本数多

Incandescenced1 avatar May 17 '22 03:05 Incandescenced1

是的 把*args. batchsize删除
loss = loss_sum / len(test_loader)

hs7251912 avatar Aug 11 '22 03:08 hs7251912