PaddleOCR icon indicating copy to clipboard operation
PaddleOCR copied to clipboard

Paddle-VL 初始化加载后,python 内核直接崩溃重启了。

Open johnny20240812 opened this issue 2 months ago • 4 comments

🔎 Search before asking

  • [x] I have searched the PaddleOCR Docs and found no similar bug report.
  • [x] I have searched the PaddleOCR Issues and found no similar bug report.
  • [x] I have searched the PaddleOCR Discussions and found no similar bug report.

🐛 Bug (问题描述)

try:

    pipeline_full = PaddleOCRVL()
    print("✅ 完整模型初始化成功!")
    
except Exception as e:
    print(f"❌ 初始化失败: {e}")
    import traceback
    traceback.print_exc()

代码没有进入except 中。 代码执行到,pipeline_full = PaddleOCRVL()后就停止了。 没有任何的异常提示。 使用的是aconda 环境。cuda版本是11.8,python 版本是3.11 使用官方代码:paddleocr doc_parser -i https://paddle-model-ecology.bj.bcebos.com/paddlex/imgs/demo_image/paddleocr_vl_demo.png 是同样的问题

🏃‍♂️ Environment (运行环境)

aiohappyeyeballs 2.6.1 aiohttp 3.13.1 aiosignal 1.4.0 aistudio-sdk 0.3.8 annotated-types 0.7.0 anyio 4.10.0 argon2-cffi 25.1.0 argon2-cffi-bindings 25.1.0 arrow 1.4.0 asttokens 3.0.0 async-lru 2.0.5 attrs 25.4.0 babel 2.17.0 bce-python-sdk 0.9.46 beautifulsoup4 4.14.2 bleach 6.2.0 cachetools 6.2.1 certifi 2025.8.3 cffi 2.0.0 chardet 5.2.0 charset-normalizer 3.4.4 click 8.3.0 colorama 0.4.6 colorlog 6.10.1 comm 0.2.3 cssselect 1.3.0 cssutils 2.11.1 dataclasses-json 0.6.7 debugpy 1.8.17 decorator 5.2.1 defusedxml 0.7.1 distro 1.9.0 einops 0.8.1 et_xmlfile 2.0.0 executing 2.2.1 fastjsonschema 2.21.2 filelock 3.20.0 fqdn 1.5.1 frozenlist 1.8.0 fsspec 2025.9.0 ftfy 6.3.1 future 1.0.0 greenlet 3.2.4 h11 0.16.0 httpcore 1.0.9 httpx 0.28.1 httpx-sse 0.4.3 huggingface-hub 0.35.3 idna 3.10 imagesize 1.4.1 ipykernel 7.0.1 ipython 9.6.0 ipython_pygments_lexers 1.1.1 ipywidgets 8.1.7 isoduration 20.11.0 jedi 0.19.2 Jinja2 3.1.6 jiter 0.11.1 joblib 1.5.2 json5 0.12.1 jsonpatch 1.33 jsonpointer 3.0.0 jsonschema 4.25.1 jsonschema-specifications 2025.9.1 jupyter 1.1.1 jupyter_client 8.6.3 jupyter-console 6.6.3 jupyter_core 5.9.1 jupyter-events 0.12.0 jupyter-lsp 2.3.0 jupyter_server 2.17.0 jupyter_server_terminals 0.5.3 jupyterlab 4.4.9 jupyterlab_pygments 0.3.0 jupyterlab_server 2.27.3 jupyterlab_widgets 3.0.15 langchain 0.3.27 langchain-community 0.3.31 langchain-core 0.3.79 langchain-openai 0.3.35 langchain-text-splitters 0.3.11 langsmith 0.4.37 lark 1.3.0 lxml 6.0.2 MarkupSafe 3.0.3 marshmallow 3.26.1 matplotlib-inline 0.1.7 mistune 3.1.4 modelscope 1.31.0 more-itertools 10.8.0 multidict 6.7.0 mypy_extensions 1.1.0 nbclient 0.10.2 nbconvert 7.16.6 nbformat 5.10.4 nest-asyncio 1.6.0 networkx 3.5 notebook 7.4.7 notebook_shim 0.2.4 numpy 2.3.1 nvidia-cublas-cu11 11.11.3.6 nvidia-cuda-nvrtc-cu11 11.8.89 nvidia-cuda-runtime-cu11 11.8.89 nvidia-cudnn-cu11 8.9.4.19 nvidia-cufft-cu11 10.9.0.58 nvidia-curand-cu11 10.3.0.86 nvidia-cusolver-cu11 11.4.1.48 nvidia-cusparse-cu11 11.7.5.86 openai 2.6.0 opencv-contrib-python 4.10.0.84 openpyxl 3.1.5 opt-einsum 3.3.0 orjson 3.11.3 overrides 7.7.0 packaging 25.0 paddleocr 3.3.0 paddlepaddle 3.2.0 paddlepaddle-gpu 3.2.0 paddlex 3.3.4 pandas 2.3.3 pandocfilters 1.5.1 parso 0.8.5 pillow 11.2.1 pip 25.2 platformdirs 4.5.0 premailer 3.10.0 prettytable 3.16.0 prometheus_client 0.23.1 prompt_toolkit 3.0.52 propcache 0.4.1 protobuf 6.31.1 psutil 7.1.1 pure_eval 0.2.3 py-cpuinfo 9.0.0 pyclipper 1.3.0.post6 pycparser 2.23 pycryptodome 3.23.0 pydantic 2.12.3 pydantic_core 2.41.4 pydantic-settings 2.11.0 Pygments 2.19.2 pypdfium2 4.30.0 python-bidi 0.6.6 python-dateutil 2.9.0.post0 python-dotenv 1.1.1 python-json-logger 4.0.0 pytz 2025.2 pywinpty 3.0.2 PyYAML 6.0.2 pyzmq 27.1.0 referencing 0.37.0 regex 2025.10.22 requests 2.32.5 requests-toolbelt 1.0.0 rfc3339-validator 0.1.4 rfc3986-validator 0.1.1 rfc3987-syntax 1.1.0 rpds-py 0.27.1 ruamel.yaml 0.18.15 ruamel.yaml.clib 0.2.14 safetensors 0.6.2 scikit-learn 1.7.2 scipy 1.16.2 Send2Trash 1.8.3 sentencepiece 0.2.1 setuptools 65.5.1 shapely 2.1.2 six 1.17.0 sniffio 1.3.1 soupsieve 2.8 SQLAlchemy 2.0.44 stack-data 0.6.3 tenacity 9.1.2 terminado 0.18.1 threadpoolctl 3.6.0 tiktoken 0.12.0 tinycss2 1.4.0 tokenizers 0.22.1 tornado 6.5.2 tqdm 4.67.1 traitlets 5.14.3 typing_extensions 4.15.0 typing-inspect 0.9.0 typing-inspection 0.4.2 tzdata 2025.2 ujson 5.11.0 uri-template 1.3.0 urllib3 2.5.0 wcwidth 0.2.14 webcolors 24.11.1 webencodings 0.5.1 websocket-client 1.9.0 wheel 0.38.4 widgetsnbextension 4.0.14 yarl 1.22.0 zstandard 0.25.0

🌰 Minimal Reproducible Example (最小可复现问题的Demo)

from paddleocr import PaddleOCRVL import os import gc

try:

    pipeline_full = PaddleOCRVL()
    print("✅ 完整模型初始化成功!")
    
except Exception as e:
    print(f"❌ 初始化失败: {e}")
    import traceback
    traceback.print_exc()

johnny20240812 avatar Oct 21 '25 06:10 johnny20240812

执行 python -c 'import paddle; paddle.utils.run_check()' 可以得到正常的结果吗?

Bobholamovic avatar Oct 23 '25 14:10 Bobholamovic

I1029 08:45:03.915448 15400 pir_interpreter.cc:1524] New Executor is Running ... WARNING: Logging before InitGoogleLogging() is written to STDERR W1029 08:45:03.915448 15400 gpu_resources.cc:114] Please NOTE: device: 0, GPU Compute Capability: 8.9, Driver API Version: 13.0, Runtime API Version: 11.8 I1029 08:45:04.086721 15400 pir_interpreter.cc:1547] pir interpreter is running by multi-thread mode ... PaddlePaddle works well on 1 GPU. PaddlePaddle is installed successfully! Let's start deep learning with PaddlePaddle now. 正常的

johnny20240812 avatar Oct 29 '25 00:10 johnny20240812

没事,我这个是windows 11操作系统可能是这个原因,所以不能用。我现在用tls来操作吧,就是麻烦点。感谢

johnny20240812 avatar Oct 29 '25 02:10 johnny20240812

好的,那后续有其他问题欢迎继续反馈。

Bobholamovic avatar Nov 20 '25 05:11 Bobholamovic

The issue has no response for a long time and will be closed. You can reopen or new another issue if are still confused.


From Bot

TingquanGao avatar Dec 21 '25 12:12 TingquanGao