TIN icon indicating copy to clipboard operation
TIN copied to clipboard

`AverageMeter` is not correct in `test.py`

Open dreamerlin opened this issue 4 years ago • 1 comments

AverageMeter in TIN/utils.py which is used in test.py is not correct.

The AverageMeter in this file only calculates the acc with the history list, which is with self.length long. So the final ouput is not right. It can be reproduced by changing the batch size of the test, the acc will also change, which is abnormal.

I think it should use AverageMeter in this.

dreamerlin avatar Aug 03 '20 07:08 dreamerlin

Have fixed it in the latest version

deepcs233 avatar Nov 25 '20 17:11 deepcs233