Replies: 1 comment 3 replies
-
只凭日志看不出来为啥,看着是缺少某些py源码文件 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
问题描述 / Problem Description
运行环境 / Runtime Environment
复现代码 / Reproduction Code
完整报错 / Complete Error Message
可能解决方案 / Possible solutions
附件 / Appendix
[2024/07/12 15:18:35] ppocr INFO: load pretrain successful from H:/PythonCode/PaddleOCR-main/dist/TrainOCR-2/output/ch_PP-OCRv4/best_accuracy
Exception in thread Thread-8:
Traceback (most recent call last):
File "threading.py", line 980, in _bootstrap_inner
File "threading.py", line 917, in run
File "TrainOCR.py", line 856, in _export_model
File "tools\export_model.py", line 294, in export
File "tools\export_model.py", line 289, in main
File "tools\export_model.py", line 192, in export_single_model
File "decorator.py", line 232, in fun
File "paddle\fluid\wrapped_decorator.py", line 26, in impl
File "paddle\fluid\dygraph\jit.py", line 649, in wrapper
File "decorator.py", line 232, in fun
File "paddle\fluid\wrapped_decorator.py", line 26, in impl
File "paddle\fluid\dygraph\base.py", line 67, in impl
File "paddle\fluid\dygraph\jit.py", line 927, in save
File "paddle\fluid\dygraph\dygraph_to_static\program_translator.py", line 577, in concrete_program_specify_input_spec
File "paddle\fluid\dygraph\dygraph_to_static\program_translator.py", line 485, in get_concrete_program
File "paddle\fluid\dygraph\dygraph_to_static\program_translator.py", line 955, in getitem
File "paddle\fluid\dygraph\dygraph_to_static\program_translator.py", line 939, in _build_once
File "decorator.py", line 232, in fun
File "paddle\fluid\wrapped_decorator.py", line 26, in impl
File "paddle\fluid\dygraph\base.py", line 67, in impl
File "paddle\fluid\dygraph\dygraph_to_static\program_translator.py", line 848, in from_func_spec
File "paddle\fluid\dygraph\dygraph_to_static\program_translator.py", line 142, in convert_to_static
File "paddle\fluid\dygraph\dygraph_to_static\program_translator.py", line 77, in convert_with_cache
File "paddle\fluid\dygraph\dygraph_to_static\program_translator.py", line 104, in _convert
File "paddle\fluid\dygraph\dygraph_to_static\utils.py", line 703, in func_to_source_code
File "inspect.py", line 1006, in getsourcelines
File "inspect.py", line 835, in findsource
OSError: could not get source code
这是我用pyinstaller 打包好的软件,导出模型时报的错
Beta Was this translation helpful? Give feedback.
All reactions