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]: auc_roc in predict #3446

Merged
merged 2 commits into from
Aug 14, 2023
Merged
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
6 changes: 4 additions & 2 deletions tools/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@

import paddle

from paddleseg.cvlibs import manager, Config, SegBuilder
from paddleseg.utils import get_sys_env, logger, get_image_list, utils
from paddleseg.core import predict
from paddleseg.cvlibs import Config, SegBuilder, manager
from paddleseg.transforms import Compose
from paddleseg.utils import get_image_list, get_sys_env, logger, utils


def parse_args():
Expand Down Expand Up @@ -105,6 +105,8 @@ def merge_test_config(cfg, args):
test_config = cfg.test_config
if 'aug_eval' in test_config:
test_config.pop('aug_eval')
if 'auc_roc' in test_config:
test_config.pop('auc_roc')
if args.aug_pred:
test_config['aug_pred'] = args.aug_pred
test_config['scales'] = args.scales
Expand Down