mirror of
https://github.com/PaddlePaddle/PaddleClas.git
synced 2025-06-03 21:55:06 +08:00
polish for mixup
This commit is contained in:
parent
38728f638b
commit
165068cea8
@ -398,7 +398,6 @@ def run(dataloader, exe, program, fetchs, epoch=0, mode='train'):
|
||||
else:
|
||||
logger.info("END epoch:{:<3d} {:s} {:s}s".format(epoch, mode, end_str))
|
||||
|
||||
# save the best model
|
||||
# return top1_acc in order to save the best model
|
||||
if mode == 'valid':
|
||||
top1_acc = fetchs["top1"][1].avg
|
||||
return top1_acc
|
||||
return fetchs["top1"][1].avg
|
||||
|
Loading…
x
Reference in New Issue
Block a user