95aec2a9f9c13b62e34633242cb51e52986746b2,train_ch.py,,parse_args,#,19

Before Change


    parser = argparse.ArgumentParser(
        description="Train a model for image classification (Chainer)",
        formatter_class=argparse.ArgumentDefaultsHelpFormatter)
    parser.add_argument(
        "--data-dir",
        type=str,
        default="../imgclsmob_data/imagenet",
        help="training and validation pictures to use.")

    parser.add_argument(
        "--model",
        type=str,
        required=True,
        help="type of model to use. see model_provider for options.")
    parser.add_argument(
        "--use-pretrained",
        action="store_true",
        help="enable using pretrained model from gluon.")
    parser.add_argument(
        "--resume",
        type=str,
        default="",
        help="resume from previously saved parameters if not None")
    parser.add_argument(
        "--resume-state",
        type=str,
        default="",
        help="resume from previously saved optimizer state if not None")

    parser.add_argument(
        "--input-size",
        type=int,
        default=224,
        help="size of the input for model. default is 224")
    parser.add_argument(
        "--resize-inv-factor",
        type=float,
        default=0.875,
        help="inverted ratio for input image crop. default is 0.875")

    parser.add_argument(
        "--num-gpus",
        type=int,

After Change


        description="Train a model for image classification (Chainer/ImageNet-1K)",
        formatter_class=argparse.ArgumentDefaultsHelpFormatter)

    add_dataset_parser_arguments(parser)

    parser.add_argument(
        "--model",
        type=str,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: osmr/imgclsmob
Commit Name: 95aec2a9f9c13b62e34633242cb51e52986746b2
Time: 2019-01-12
Author: osemery@gmail.com
File Name: train_ch.py
Class Name:
Method Name: parse_args


Project Name: osmr/imgclsmob
Commit Name: 95aec2a9f9c13b62e34633242cb51e52986746b2
Time: 2019-01-12
Author: osemery@gmail.com
File Name: train_ch.py
Class Name:
Method Name: parse_args


Project Name: osmr/imgclsmob
Commit Name: 95aec2a9f9c13b62e34633242cb51e52986746b2
Time: 2019-01-12
Author: osemery@gmail.com
File Name: eval_ch.py
Class Name:
Method Name: parse_args


Project Name: osmr/imgclsmob
Commit Name: 8d2000ea98d3924bc4618c94693edc7c49e29374
Time: 2019-01-10
Author: osemery@gmail.com
File Name: eval_pt.py
Class Name:
Method Name: parse_args


Project Name: osmr/imgclsmob
Commit Name: 8d2000ea98d3924bc4618c94693edc7c49e29374
Time: 2019-01-10
Author: osemery@gmail.com
File Name: train_pt.py
Class Name:
Method Name: parse_args