def parse_args():
    parser = argparse.ArgumentParser(description='Re-evaluate results')
    parser.add_argument('output_dir', nargs=1, help='results directory',
                        type=str)
    parser.add_argument('--rerun', dest='rerun',
                        help=('re-run evaluation code '
                              '(otherwise: results are loaded from file)'),
                        action='store_true')
    parser.add_argument('--imdb', dest='imdb_name',
                        help='dataset to re-evaluate',
                        default='voc_2007_test', type=str)
    parser.add_argument('--comp', dest='comp_mode', help='competition mode',
                        action='store_true')

    if len(sys.argv) == 1:
        parser.print_help()
        sys.exit(1)

    args = parser.parse_args()
    return args
Fieldset media
dataset/ETHPy150Open rbgirshick/fast-rcnn/tools/reval.py/parse_args--crossover with--dataset/ETHPy150Open SmartTeleMax/iktomi/tests/forms/media.py/MediaTests.test_fieldset