示例#1
0
    def default_hparams(config_path, name='default'):
        params = YParams(config_path, name)
        params.add_hparam('dataset_path', params.train_dataset_path)

        ### Image sequence length when training
        params.add_hparam('max_squence_len', 30)
        params.add_hparam('min_squence_len', 20)
        params.add_hparam('shuffle_bufsize', 100)
        params.add_hparam('batch_size', 16)

        return params
示例#2
0
 def default_hparams(config_path, name='default'):
     params = YParams(config_path, name)
     params.add_hparam('dataset_path', params.train_dataset_path)
     params.add_hparam('shuffle_bufsize', 100)
     params.add_hparam('batch_size', 3)
     params.add_hparam('img_size', 512)
     params.add_hparam('crop_ratio', 0.9)
     params.add_hparam('seq_len', 20)
     return params
示例#3
0
 def default_hparams(config_path, name='default'):
     params = YParams(config_path, name)
     return params