fix bugs
This commit is contained in:
parent
8501e36ea2
commit
39955558b8
|
@ -60,7 +60,8 @@ Metric:
|
||||||
Train:
|
Train:
|
||||||
dataset:
|
dataset:
|
||||||
name: SimpleDataSet
|
name: SimpleDataSet
|
||||||
label_file_path: [./train_data/art_latin_icdar_14pt/train_no_tt_test/train_label_json.txt, ./train_data/total_text_icdar_14pt/train_label_json.txt]
|
data_dir: ./train_data/
|
||||||
|
label_file_list: [./train_data/art_latin_icdar_14pt/train_no_tt_test/train_label_json.txt, ./train_data/total_text_icdar_14pt/train_label_json.txt]
|
||||||
data_ratio_list: [0.5, 0.5]
|
data_ratio_list: [0.5, 0.5]
|
||||||
transforms:
|
transforms:
|
||||||
- DecodeImage: # load image
|
- DecodeImage: # load image
|
||||||
|
|
|
@ -102,7 +102,6 @@ def init_model(config, model, logger, optimizer=None, lr_scheduler=None):
|
||||||
best_model_dict = states_dict.get('best_model_dict', {})
|
best_model_dict = states_dict.get('best_model_dict', {})
|
||||||
if 'epoch' in states_dict:
|
if 'epoch' in states_dict:
|
||||||
best_model_dict['start_epoch'] = states_dict['epoch'] + 1
|
best_model_dict['start_epoch'] = states_dict['epoch'] + 1
|
||||||
best_model_dict['start_epoch'] = best_model_dict['best_epoch'] + 1
|
|
||||||
|
|
||||||
logger.info("resume from {}".format(checkpoints))
|
logger.info("resume from {}".format(checkpoints))
|
||||||
elif pretrained_model:
|
elif pretrained_model:
|
||||||
|
|
Loading…
Reference in New Issue