PaddleDetection模型评估

2021SC@SDUSC
本周分析

ore')
import random
import numpy as np
import paddle
import time

from paddle.distributed import ParallelEnv
from ppdet.core.workspace import load_config, merge_config, create
from ppdet.utils.check import check_gpu, check_version, check_config
from ppdet.utils.cli import ArgsParser
from ppdet.utils.eval_utils import get_infer_results, eval_results
from ppdet.utils.checkpoint import load_weight

from ppdet.utils.logger import setup_logger
logger = setup_logger('eval')

#运行配置参数解析函数
def parse_args():
    parser = ArgsParser()
    parser.add_argument(
        "--output_eval",
        default=None,
        type=str,
        help="Evaluation directory, default is current directory.")

    parser.add_argument(
        '--json_eval',
        action='store_true',
        default=False,
        help='Whether to re eval with already exists bbox.json or mask.json')

 

你可能感兴趣的:(笔记,tensorflow,pytorch,人工智能)