Skip to content

Commit

Permalink
[Fix]: auc_roc in predict (#3446)
Browse files Browse the repository at this point in the history
* [Fix]: auc_roc in predict

* move to merge_test_config
  • Loading branch information
Asthestarsfalll authored Aug 14, 2023
1 parent 17d0894 commit 0dd7dc5
Showing 1 changed file with 4 additions and 2 deletions.
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

0 comments on commit 0dd7dc5

Please sign in to comment.