mirror of
https://github.com/facebookresearch/deit.git
synced 2025-06-03 06:39:59 +08:00
Update main.py
This commit is contained in:
parent
c890ceb930
commit
5d5fbbd753
2
main.py
2
main.py
@ -359,7 +359,7 @@ def main(args):
|
||||
utils._load_checkpoint_for_ema(model_ema, checkpoint['model_ema'])
|
||||
if 'scaler' in checkpoint:
|
||||
loss_scaler.load_state_dict(checkpoint['scaler'])
|
||||
|
||||
lr_scheduler.step(args.start_epoch)
|
||||
if args.eval:
|
||||
test_stats = evaluate(data_loader_val, model, device)
|
||||
print(f"Accuracy of the network on the {len(dataset_val)} test images: {test_stats['acc1']:.1f}%")
|
||||
|
Loading…
x
Reference in New Issue
Block a user