Update train.py
This commit is contained in:
parent
b8a65d4333
commit
9de346b234
|
@ -97,8 +97,7 @@ def main(config, device, logger, vdl_writer):
|
||||||
# build metric
|
# build metric
|
||||||
eval_class = build_metric(config['Metric'])
|
eval_class = build_metric(config['Metric'])
|
||||||
# load pretrain model
|
# load pretrain model
|
||||||
#pre_best_model_dict = load_dygraph_params(config, model, logger, optimizer)
|
pre_best_model_dict = load_dygraph_params(config, model, logger, optimizer)
|
||||||
pre_best_model_dict = {}
|
|
||||||
logger.info('train dataloader has {} iters'.format(len(train_dataloader)))
|
logger.info('train dataloader has {} iters'.format(len(train_dataloader)))
|
||||||
if valid_dataloader is not None:
|
if valid_dataloader is not None:
|
||||||
logger.info('valid dataloader has {} iters'.format(
|
logger.info('valid dataloader has {} iters'.format(
|
||||||
|
|
Loading…
Reference in New Issue