运行这句时python tools/train.py -c ../configs/det/det_mv3_db.yml
Created by: Jasonxgw
2020-06-11 15:32:26,348-INFO: {'Global': {'algorithm': 'DB', 'use_gpu': False, 'epoch_num': 1200, 'log_smooth_window': 20, 'print_batch_step': 2, 'save_model_dir': '../output/det_db', 'save_epoch_step': 200, 'eval_batch_step': 5000, 'train_batch_size_per_card': 2, 'test_batch_size_per_card': 2, 'image_shape': [3, 640, 640], 'reader_yml': '../configs/det/det_db_icdar15_reader.yml', 'pretrain_weights': '../pretrain_models/MobileNetV3_large_x0_5_pretrained/', 'checkpoints': None, 'save_res_path': '../output/det_db/predicts_db.txt', 'save_inference_dir': None}, 'Architecture': {'function': 'ppocr.modeling.architectures.det_model,DetModel'}, 'Backbone': {'function': 'ppocr.modeling.backbones.det_mobilenet_v3,MobileNetV3', 'scale': 0.5, 'model_name': 'large'}, 'Head': {'function': 'ppocr.modeling.heads.det_db_head,DBHead', 'model_name': 'large', 'k': 50, 'inner_channels': 96, 'out_channels': 2}, 'Loss': {'function': 'ppocr.modeling.losses.det_db_loss,DBLoss', 'balance_loss': True, 'main_loss_type': 'DiceLoss', 'alpha': 5, 'beta': 10, 'ohem_ratio': 3}, 'Optimizer': {'function': 'ppocr.optimizer,AdamDecay', 'base_lr': 0.001, 'beta1': 0.9, 'beta2': 0.999}, 'PostProcess': {'function': 'ppocr.postprocess.db_postprocess,DBPostProcess', 'thresh': 0.3, 'box_thresh': 0.7, 'max_candidates': 1000, 'unclip_ratio': 2.0}, 'TrainReader': {'reader_function': 'ppocr.data.det.dataset_traversal,TrainReader', 'process_function': 'ppocr.data.det.db_process,DBProcessTrain', 'num_workers': 8, 'img_set_dir': '../train_data/icdar2015/text_localization/', 'label_file_path': '../train_data/icdar2015/text_localization/train_icdar2015_label.txt'}, 'EvalReader': {'reader_function': 'ppocr.data.det.dataset_traversal,EvalTestReader', 'process_function': 'ppocr.data.det.db_process,DBProcessTest', 'img_set_dir': '../train_data/icdar2015/text_localization/', 'label_file_path': '../train_data/icdar2015/text_localization/test_icdar2015_label.txt', 'test_image_shape': [736, 1280]}, 'TestReader': {'reader_function': 'ppocr.data.det.dataset_traversal,EvalTestReader', 'process_function': 'ppocr.data.det.db_process,DBProcessTest', 'infer_img': None, 'img_set_dir': '../train_data/icdar2015/text_localization/', 'label_file_path': '../train_data/icdar2015/text_localization/test_icdar2015_label.txt', 'test_image_shape': [736, 1280], 'do_eval': True}} 3 640 640 3 640 640 2020-06-11 15:32:29,885-INFO: places would be ommited when DataLoader is not iterable 2020-06-11 15:32:30,041-INFO: Loading parameters from ../pretrain_models/MobileNetV3_large_x0_5_pretrained/... 2020-06-11 15:32:30,041-WARNING: ../pretrain_models/MobileNetV3_large_x0_5_pretrained/.pdparams not found, try to load model file saved with [ save_params, save_persistables, save_vars ] 2020-06-11 15:32:30,041-WARNING: ../pretrain_models/MobileNetV3_large_x0_5_pretrained/.pdparams not found, try to load model file saved with [ save_params, save_persistables, save_vars ] 2020-06-11 15:32:31,254-INFO: Finish initing model from ../pretrain_models/MobileNetV3_large_x0_5_pretrained/ !!! The CPU_NUM is not specified, you should set CPU_NUM in the environment variable list. CPU_NUM indicates that how many CPUPlace are used in the current task. And if this parameter are set as N (equal to the number of physical CPU core) the program may be faster.
export CPU_NUM=6 # for example, set CPU_NUM as number of physical CPU core which is 6.
!!! The default number of CPU_NUM=1. multiprocess is not fully compatible with Windows.num_workers will be 1. 2020-06-11 15:32:31,511-WARNING: Your reader has raised an exception! Traceback (most recent call last): File "D:/Downloads/PaddleOCR-develop (1)/PaddleOCR-develop/tools/train.py", line 112, in main() File "D:/Downloads/PaddleOCR-develop (1)/PaddleOCR-develop/tools/train.py", line 104, in main program.train_eval_det_run(config, exe, train_info_dict, eval_info_dict) File "D:\Downloads\PaddleOCR-develop (1)\PaddleOCR-develop\tools\program.py", line 238, in train_eval_det_run return_numpy=False) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\paddle\fluid\executor.py", line 790, in run six.reraise(*sys.exc_info()) File "C:\Users\Administrator\AppData\Roaming\Python\Python37\site-packages\six.py", line 703, in reraise raise value File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\paddle\fluid\executor.py", line 785, in run use_program_cache=use_program_cache) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\paddle\fluid\executor.py", line 850, in _run_impl return_numpy=return_numpy) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\paddle\fluid\executor.py", line 684, in _run_parallel tensors = exe.run(fetch_var_names)._move_to_list() paddle.fluid.core_avx.EnforceNotMet:
C++ Call Stacks (More useful to developers):
Windows not support stack backtrace yet.
Python Call Stacks (More useful to users):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\paddle\fluid\framework.py", line 2525, in append_op attrs=kwargs.get("attrs", None)) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\paddle\fluid\reader.py", line 733, in _init_non_iterable outputs={'Out': self._feed_list}) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\paddle\fluid\reader.py", line 646, in init self._init_non_iterable() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\paddle\fluid\reader.py", line 280, in from_generator iterable, return_list) File "D:\Downloads\PaddleOCR-develop (1)\PaddleOCR-develop\ppocr\modeling\architectures\det_model.py", line 97, in create_feed iterable=False) File "D:\Downloads\PaddleOCR-develop (1)\PaddleOCR-develop\ppocr\modeling\architectures\det_model.py", line 110, in call image, labels, loader = self.create_feed(mode) File "D:\Downloads\PaddleOCR-develop (1)\PaddleOCR-develop\tools\program.py", line 169, in build dataloader, outputs = model(mode=mode) File "D:/Downloads/PaddleOCR-develop (1)/PaddleOCR-develop/tools/train.py", line 66, in main config, train_program, startup_program, mode='train') File "D:/Downloads/PaddleOCR-develop (1)/PaddleOCR-develop/tools/train.py", line 112, in main()
Error Message Summary:
Error: Blocking queue is killed because the data reader raises an exception [Hint: Expected killed_ != true, but received killed_:1 == true:1.] at (D:\1.7.2\paddle\paddle/fluid/operators/reader/blocking_queue.h:141) [operator < read > error] I0611 15:32:31.286535 19084 parallel_executor.cc:440] The Program will be executed on CPU using ParallelExecutor, 1 cards are used, so 1 programs are executed in parallel. I0611 15:32:31.334564 19084 build_strategy.cc:365] SeqOnlyAllReduceOps:0, num_trainers:1 I0611 15:32:31.455535 19084 parallel_executor.cc:307] Inplace strategy is enabled, when build_strategy.enable_inplace = True I0611 15:32:31.487565 19084 parallel_executor.cc:375] Garbage collection strategy is enabled, when FLAGS_eager_delete_tensor_gb = 0