Views
No views yet


1# The following command installs the PaddlePaddle version for CUDA 12.6. For other CUDA versions and the CPU version, please refer to https://www.paddlepaddle.org.cn/en/install/quick?docurl=/documentation/docs/en/develop/install/pip/linux-pip_en.html
2python -m pip install paddlepaddle-gpu==3.2.1 -i https://www.paddlepaddle.org.cn/packages/stable/cu126/
3python -m pip install -U "paddleocr[doc-parser]>=3.4.0"Please ensure that you install PaddlePaddle framework version 3.2.1 or above, along with the special version of safetensors. For macOS users, please use Docker to set up the environment.
llama-server \
-m /path/to/PaddleOCR-VL-1.5-GGUF.gguf \
--mmproj /path/to/PaddleOCR-VL-1.5-GGUF-mmproj.gguf \
--port 8080 \
--host 0.0.0.0 \
--temp 01paddleocr doc_parser \
2 -i https://paddle-model-ecology.bj.bcebos.com/paddlex/imgs/demo_image/paddleocr_vl_demo.png \
3 --pipeline_version v1.5 \
4 --vl_rec_backend llama-cpp-server \
5 --vl_rec_server_url http://127.0.0.1:8080/v11from paddleocr import PaddleOCRVL
2pipeline = PaddleOCRVL(pipeline_version="v1.5", vl_rec_backend="llama-cpp-server", vl_rec_server_url="http://127.0.0.1:8080/v1")
3output = pipeline.predict("https://paddle-model-ecology.bj.bcebos.com/paddlex/imgs/demo_image/paddleocr_vl_demo.png")
4for res in output:
5 res.print()
6 res.save_to_json(save_path="output")
7 res.save_to_markdown(save_path="output")OCR:.Formula Recognition:.Table Recognition:.Chart Recognition:.Seal Recognition:.Spotting:, and need to set image_max_pixels to 1605632:git clone https://github.com/ggml-org/llama.cpp.git
cd llama.cpp
python -m pip install gguf
python ./gguf-py/gguf/scripts/gguf_set_metadata.py /path/to/PaddleOCR-VL-1.5-GGUF/PaddleOCR-VL-1.5-mmproj.gguf clip.vision.image_max_pixels 1605632 --force
# back to default value (1003520):
# python ./gguf-py/gguf/scripts/gguf_set_metadata.py /path/to/PaddleOCR-VL-1.5-GGUF/PaddleOCR-VL-1.5-mmproj.gguf clip.vision.image_max_pixels 1003520 --force1llama-cli \
2 -m /path/to/PaddleOCR-VL-1.5-GGUF/PaddleOCR-VL-1.5.gguf \
3 --mmproj /path/to/PaddleOCR-VL-1.5-GGUF/PaddleOCR-VL-1.5-mmproj.gguf \
4 -p 'OCR:' \
5 --image 'test_image.jpg'llama-server -m /path/to/PaddleOCR-VL-1.5.gguf --mmproj /path/to/PaddleOCR-VL-1.5-GGUF/PaddleOCR-VL-1.5-mmproj.gguf --temp 0