google-research / augmix

AugMix: A Simple Data Processing Method to Improve Robustness and Uncertainty

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Repeated Evaluation in ImageNet

LeeDoYup opened this issue · comments

augmix/imagenet.py

Lines 485 to 489 in 7c84885

corruption_accs = test_c(net, test_transform)
for c in CORRUPTIONS:
print('\t'.join(map(str, [c] + corruption_accs[c])))
print('mCE (normalized by AlexNet):', compute_mce(corruption_accs))

in imagenet.py,
the evaluation of robustness is unnecessarily repeated in each iteration.

Fixed. Thanks!