Exemplo n.º 1
0
config.generator_single_labelling_features = labelling[training_algo][2]
config.generator_single_labelling_labels = labelling[training_algo][3]

config.generator_aug_labelling_features = []
config.generator_aug_labelling_labels = []
config.generator_aug_single_labelling_features = []
config.generator_aug_single_labelling_labels = []
config.generator_modify = None
config.generator_show_gen_sample = show_sample_map
config.generator_nr_of_examples = nbr_ex

if args.full_train:
    config.generator = True
    for m in gen_maps.values():
        config.generator_gen_type = m
        config.generator_labelling_atlases = [m + '_' + str(nbr_ex)]

        MainRunner(config).run()

config.generator_labelling_atlases = [
    m + '_' + str(nbr_ex) for m in gen_maps.values()
]
# Generator
config.generator = gen_start
if config.generator_house_expo:
    gen_map = '_house_expo'
    config.generator_labelling_atlases = [gen_map]

elif gen_start:
    gen_map = gen_maps[chosen_map]
    config.generator_gen_type = gen_map
Exemplo n.º 2
0
mp = maps[chosen_map]
#Chooses map for generation

#Simulator
config.load_simulator = sim_start
config.simulator_graphics = True
# config.simulator_initial_map, config.simulator_grid_display = mp
# config.simulator_algorithm_type, config.simulator_testing_type, config.simulator_algorithm_parameters = algo
# config.simulator_key_frame_speed, config.simulator_key_frame_skip = ani
config.simulator_write_debug_level = debug

#Generator
config.generator = gen_start
if config.generator_house_expo:
    gen_map = '_house_expo'
    config.generator_labelling_atlases = [gen_map]
    config.generator_nr_of_examples = nbr_ex

else:
    gen_map = gen_maps[chosen_map]
    config.generator_labelling_atlases = [gen_map + '_' + str(nbr_ex)]
    config.generator_nr_of_examples = nbr_ex
    config.generator_gen_type = gen_map

#These are for training
config.generator_labelling_features = []
config.generator_labelling_labels = []
config.generator_single_labelling_features = []
config.generator_single_labelling_labels = []

config.generator_aug_labelling_features = []