You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
963 B
Markdown

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 环境说明
```
# 1. pdf转图片需要安装以下依赖
apt install -y poppler-utils
# 2. 解决paddle的兼容问题
export FLAGS_enable_pir_api=0
# 3. 安装paddlepaddle-gpu后需要配置的环境
apt install libcudnn8
apt install libcudnn8-dev
echo "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/python3.11/site-packages/nvidia/cublas/lib/" >> /etc/profile
# 4. 手动安装MinerU需要用到的模型下载路径:
# model_dir is: /root/.cache/modelscope/hub/models/opendatalab/PDF-Extract-Kit-1___0/models
# layoutreader_model_dir is: /root/.cache/modelscope/hub/models/ppaanngggg/layoutreader
# The configuration file has been configured successfully, the path is: /root/magic-pdf.json
# 需要将项目中的magic-pdf.json链接到/root/magic-pdf.json
ln -s `pwd`/magic-pdf.json /root/magic-pdf.json
python download_MinerU_models.py
# 5. python连接postgresql需要下载的依赖
apt install postgresql postgresql-contrib libpq-dev
```