Skip to content

Commit

Permalink
[Fix] Remove flip_horizontal when aug_eval is True (#1559)
Browse files Browse the repository at this point in the history
  • Loading branch information
juncaipeng authored Nov 22, 2021
1 parent 8ed8647 commit f06e34d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion paddleseg/core/val.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def evaluate(model,
eval_dataset,
aug_eval=False,
scales=1.0,
flip_horizontal=True,
flip_horizontal=False,
flip_vertical=False,
is_slide=False,
stride=None,
Expand Down
4 changes: 0 additions & 4 deletions val.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,7 @@ def get_test_config(cfg, args):
if args.aug_eval:
test_config['aug_eval'] = args.aug_eval
test_config['scales'] = args.scales

if args.flip_horizontal:
test_config['flip_horizontal'] = args.flip_horizontal

if args.flip_vertical:
test_config['flip_vertical'] = args.flip_vertical

if args.is_slide:
Expand Down

0 comments on commit f06e34d

Please sign in to comment.