Skip to content

Commit

Permalink
Configurable network input size in evalaute
Browse files Browse the repository at this point in the history
  • Loading branch information
Sulabh Kumra committed May 20, 2021
1 parent 9d732af commit ef0a088
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ def parse_args():
# Network
parser.add_argument('--network', metavar='N', type=str, nargs='+',
help='Path to saved networks to evaluate')
parser.add_argument('--input-size', type=int, default=224,
help='Input image size for the network')

# Dataset
parser.add_argument('--dataset', type=str,
Expand Down Expand Up @@ -79,6 +81,7 @@ def parse_args():
logging.info('Loading {} Dataset...'.format(args.dataset.title()))
Dataset = get_dataset(args.dataset)
test_dataset = Dataset(args.dataset_path,
output_size=args.input_size,
ds_rotate=args.ds_rotate,
random_rotate=args.augment,
random_zoom=args.augment,
Expand Down

0 comments on commit ef0a088

Please sign in to comment.