mirror of
https://github.com/huggingface/pytorch-image-models.git
synced 2025-06-03 15:01:08 +08:00
test_time_pool would be set to a non-False value even if test-time pooling is not available
This commit is contained in:
parent
4be5b51e0a
commit
8ffdc5910a
@ -139,7 +139,7 @@ def validate(args):
|
||||
_logger.info('Model %s created, param count: %d' % (args.model, param_count))
|
||||
|
||||
data_config = resolve_data_config(vars(args), model=model)
|
||||
model, test_time_pool = model, False if args.no_test_pool else apply_test_time_pool(model, data_config)
|
||||
model, test_time_pool = (model, False) if args.no_test_pool else apply_test_time_pool(model, data_config)
|
||||
|
||||
if args.torchscript:
|
||||
torch.jit.optimized_execution(True)
|
||||
|
Loading…
x
Reference in New Issue
Block a user