Ejemplo n.º 1
0
class scene_cfg:
    global_cfgs = get_train_cfg();
    dataset_cfgs = DSCFG(T, DICT, DSROOT);
    net_cfgs = get_net(CC, prefix, None, maxT=T);
    optimizer_cfgs = get_dos_optim()
    saving_cfgs = get_save_cfgs(prefix)

    def mkdir(this, path_):
        paths = path_.split('/')
        command_str = 'mkdir '
        for i in range(0, len(paths) - 1):
            command_str = command_str + paths[i] + '/'
        command_str = command_str[0:-1]
        os.system(command_str)

    def showcfgs(this, s):
        for key in s.keys():
            print(key, s[key])
        print('')
Ejemplo n.º 2
0
class scene_cfg_tejp(scene_cfg):
    dataset_cfgs = get_jap_test(T, None, DSROOT)

    global_cfgs = get_test_cfg()
    net_cfgs = get_net(pdict_evaljap(DSROOT), prefix, "E3", maxT=T)
Ejemplo n.º 3
0
class scene_cfg_te(scene_cfg):
    global_cfgs = get_test_cfg()
    net_cfgs = get_net(PDICT, prefix, "E9", maxT=T)
Ejemplo n.º 4
0
class scene_cfg_tejp(scene_cfg):
    global_cfgs = get_test_cfg();
    net_cfgs = get_net(CC,prefix,"E3",maxT=T);
    # net_cfgs = get_net(pdict_evaljap(DSROOT),prefix,"E1_I80000-166912",maxT=T);
    dataset_cfgs = get_jap_test(T,DICT,DSROOT);
Ejemplo n.º 5
0
class scene_cfg_te(scene_cfg):
    global_cfgs = get_test_cfg();
    dataset_cfgs = get_test_all_uncased_ds(root=DSROOT);
    net_cfgs = get_net(PDICT,prefix,"E4",maxT=T);