407c5b32ce54f72fbc33537922f598f3df37409e,tools/demo_shadownet.py,,init_args,#,31

Before Change



    :return:
    
    cfg = load_config().cfg
    parser = argparse.ArgumentParser()
    parser.add_argument("--image_path", type=str, help="Path to the image to be tested",
                        default="data/test_images/test_01.jpg")
    parser.add_argument("--weights_path", type=str, help="Path to the pre-trained weights to use",
                        default="model/shadownet/shadownet_2017-09-29-19-16-33.ckpt-39999")
    parser.add_argument("-c", "--chardict_dir", type=str, default=cfg.PATH.CHAR_DICT_DIR,
                        help="Directory where character dictionaries for the dataset were stored")
    parser.add_argument("-n", "--num_classes", type=int, default=37,
                        help="Force number of character classes to this number. "

After Change


                        help="Force number of character classes to this number. "
                             "Set to 0 for auto (read from charset_dir)")

    args = parser.parse_args()

    config = load_config(args.config_file)
    if args.chardict_dir:
        config.cfg.PATH.CHAR_DICT_DIR = args.chardict_dir

    return args, config.cfg


def recognize(image_path: str, weights_path: str, cfg: EasyDict, is_vis: bool=True,
              num_classes: int=0):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 18

Instances


Project Name: MaybeShewill-CV/CRNN_Tensorflow
Commit Name: 407c5b32ce54f72fbc33537922f598f3df37409e
Time: 2018-09-10
Author: debenito@unternehmertum.de
File Name: tools/demo_shadownet.py
Class Name:
Method Name: init_args


Project Name: MaybeShewill-CV/CRNN_Tensorflow
Commit Name: 407c5b32ce54f72fbc33537922f598f3df37409e
Time: 2018-09-10
Author: debenito@unternehmertum.de
File Name: tools/train_shadownet.py
Class Name:
Method Name: init_args


Project Name: MaybeShewill-CV/CRNN_Tensorflow
Commit Name: 407c5b32ce54f72fbc33537922f598f3df37409e
Time: 2018-09-10
Author: debenito@unternehmertum.de
File Name: tools/test_shadownet.py
Class Name:
Method Name: init_args