Skip to content

  • 体验新版
    • 正在加载...
  • 登录
  • PaddlePaddle
  • PaddleOCR
  • Issue
  • #183

P
PaddleOCR
  • 项目概览

PaddlePaddle / PaddleOCR
大约 2 年 前同步成功

通知 1557
Star 32965
Fork 6643
  • 代码
    • 文件
    • 提交
    • 分支
    • Tags
    • 贡献者
    • 分支图
    • Diff
  • Issue 108
    • 列表
    • 看板
    • 标记
    • 里程碑
  • 合并请求 7
  • Wiki 0
    • Wiki
  • 分析
    • 仓库
    • DevOps
  • 项目成员
  • Pages
P
PaddleOCR
  • 项目概览
    • 项目概览
    • 详情
    • 发布
  • 仓库
    • 仓库
    • 文件
    • 提交
    • 分支
    • 标签
    • 贡献者
    • 分支图
    • 比较
  • Issue 108
    • Issue 108
    • 列表
    • 看板
    • 标记
    • 里程碑
  • 合并请求 7
    • 合并请求 7
  • Pages
  • 分析
    • 分析
    • 仓库分析
    • DevOps
  • Wiki 0
    • Wiki
  • 成员
    • 成员
  • 收起侧边栏
  • 动态
  • 分支图
  • 创建新Issue
  • 提交
  • Issue看板
已关闭
开放中
Opened 6月 11, 2020 by saxon_zh@saxon_zhGuest

运行这句时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

指派人
分配到
无
里程碑
无
分配里程碑
工时统计
无
截止日期
无
标识: paddlepaddle/PaddleOCR#183
渝ICP备2023009037号

京公网安备11010502055752号

网络110报警服务 Powered by GitLab CE v13.7
开源知识
Git 入门 Pro Git 电子书 在线学 Git
Markdown 基础入门 IT 技术知识开源图谱
帮助
使用手册 反馈建议 博客
《GitCode 隐私声明》 《GitCode 服务条款》 关于GitCode
Powered by GitLab CE v13.7