lee-zq/3DUNet-Pytorch

AttributeError: 'collections.OrderedDict' object has no attribute 'avg'

White1Scorpion opened this issue · 12 comments

test.py里面变量名字有问题,predict_one_img()返回的不应该包括"test_dice",对照train.py修改。否则会AttributeError: 'collections.OrderedDict' object has no attribute 'avg'

shuisn commented

具体应该怎么修改呢??

shuisn commented
shuisn commented

已经修改好,谢谢您的提示

最后返回的仿照train.py改成test_log