Closed slightly0 closed 1 year ago
有更改配置文件吗?有的话,详细描述下你这边改了啥
有更改配置文件吗?有话,详细描述下你改了啥
只修改了批次大小
训练命令是啥?paddle确保安装成功了吗
训练命令是啥?paddle确保安装成功了吗
paddle安装成功的,使用vscode训练的,数据集也是按照配置文件里的路劲创建的
提供一下训练命令和配置文件吧
提供一下训练命令和配置文件吧
提供一下训练命令和配置文件吧
其他的都是默认设置
num_workers改成0
num_workers改成0
改成0也会报错上面那个错QAQ
运行命令提供一下,windows只支持单卡训练
我是通过VScode的debug运行的
运行命令提供一下,windows只支持单卡训练
上面的图是我train.py的程序运行入口
按照文档在命令行执行训练指令
按照文档在命令行执行训练指令 我只在文档上看到检测和部署命令 能给我发下相关文档吗
推理部署文档里面有给训练文档链接 https://github.com/PaddlePaddle/PaddleOCR/blob/release/2.6/doc/doc_ch/kie.md
[2022/09/13 14:23:01] ppocr INFO: During the training process, after the 0th iteration, an evaluation is run every 19 iterations
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion b != 0
failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion b != 0
failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion b != 0
failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion b != 0
failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion b != 0
failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion b != 0
failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion b != 0
failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion b != 0
failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion b != 0
failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion b != 0
failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion b != 0
failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion b != 0
failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion b != 0
failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion b != 0
failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion b != 0
failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion b != 0
failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion b != 0
failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion b != 0
failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion b != 0
failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion b != 0
failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion b != 0
failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion b != 0
failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion b != 0
failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion b != 0
failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion b != 0
failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion b != 0
failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion b != 0
failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion b != 0
failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion b != 0
failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion b != 0
failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion b != 0
failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertion b != 0
failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value.
Traceback (most recent call last):
File "tools/train.py", line 209, in
推理部署文档里面有给训练文档链接 https://github.com/PaddlePaddle/PaddleOCR/blob/release/2.6/doc/doc_ch/kie.md 报的还是之前的错误
先测试下paddle能否正常运行
import paddle
paddle.utils.run_check()
如果正常,提供一下完整的配置文件和运行命令
先测试下paddle能否正常运行
可以正常运行
运行命令
你好,看你配置写的是layoutlm,但是代码报错走到了layoutxlm.py文件中了,这里建议安装下paddlenlp:https://paddleocr.bj.bcebos.com/ppstructure/whl/paddlenlp-2.3.0.dev0-py3-none-any.whl
同时拉下最新代码和数据看下:https://github.com/PaddlePaddle/PaddleOCR/blob/release/2.6/configs/kie/layoutlm_series/ser_layoutlm_xfund_zh.yml
你好,看你配置写的是layoutlm,但是代码报错了layoutxlm.py文件中了,这里建议安装下paddlenlp:https://paddleocr.bj.bcebos.com/ppstructure/whl/paddlenlp-2.3.0 。 dev0-py3-none-any.whl
好的 我拉下最新的代码看下
你好,看你配置写的是layoutlm,但是代码报错了layoutxlm.py文件中了,这里建议安装下paddlenlp:https://paddleocr.bj.bcebos.com/ppstructure/whl/paddlenlp-2.3.0 。 dev0-py3-none-any.whl
最新的代码 报错还是一样 错误发生在paddle.tensor数据计算时报错,最终定位报错位置是在以下这个文件中
你好,我这边训练比较正常,你可以拉下代码再试下,建议先不要修改配置文件,按照教程先把流程走通
你好,我这边训练比较正常,你可以拉下代码再试下,建议先不要修改配置文件,按照教程先把流程走通
- paddlenlp:https://paddleocr.bj.bcebos.com/ppstructure/whl/paddlenlp-2.3.0.dev0-py3-none-any.whl
- xfund数据地址: https://paddleocr.bj.bcebos.com/ppstructure/dataset/XFUND.tar
- paddlepaddle:2.3.1
- paddleocr:dygraph
我也是同样的错误
[2022/09/27 13:54:04] ppocr INFO: train dataloader has 149 iters
[2022/09/27 13:54:04] ppocr INFO: valid dataloader has 50 iters
[2022/09/27 13:54:04] ppocr INFO: During the training process, after the 0th iteration, an evaluation is run every 19 iterations
Traceback (most recent call last):
File "D:\QB\pypro\PaddleOCR\tools\train.py", line 202, in
请提供下述完整信息以便快速定位问题/Please provide the following information to quickly locate the problem
b != 0
failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value. Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertionb != 0
failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value. Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertionb != 0
failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value. Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertionb != 0
failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value. Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertionb != 0
failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value. Error: ../paddle/phi/kernels/funcs/elementwise_functor.h:545 Assertionb != 0
failed. InvalidArgumentError: Integer division by zero encountered in (floor) divide. Please check the input value. Traceback (most recent call last): File "D:\Anaconda\envs\paddle\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "D:\Anaconda\envs\paddle\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "c:\Users\lenovo.vscode\extensions\ms-python.python-2022.14.0\pythonFiles\lib\python\debugpy\adapter/../..\debugpy\launcher/../..\debugpy__main.py", line 39, inrun() File "c:\Users\lenovo.vscode\extensions\ms-python.python-2022.14.0\pythonFiles\lib\python\debugpy\adapter/../..\debugpy\launcher/../..\debugpy/..\debugpy\server\cli.py", line 284, in run_file runpy.run_path(target, run_name="main") File "c:\Users\lenovo.vscode\extensions\ms-python.python-2022.14.0\pythonFiles\lib\python\debugpy_vendored\pydevd_pydevd_bundle\pydevd_runpy.py", line 321, in run_path return _run_module_code(code, init_globals, run_name, File "c:\Users\lenovo.vscode\extensions\ms-python.python-2022.14.0\pythonFiles\lib\python\debugpy_vendored\pydevd_pydevd_bundle\pydevd_runpy.py", line 135, in _run_module_code _run_code(code, mod_globals, init_globals, File "c:\Users\lenovo.vscode\extensions\ms-python.python-2022.14.0\pythonFiles\lib\python\debugpy_vendored\pydevd_pydevd_bundle\pydevd_runpy.py", line 124, in _run_code exec(code, run_globals) File "./main.py", line 13, in