Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] Remove flip_horizontal when aug_eval is True #1559

Merged
merged 3 commits into from
Nov 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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