This commit is contained in:
2025-04-14 23:58:17 +08:00
commit b92686ce29
55 changed files with 2352 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
安装环境
```sh
conda create -n mineru 'python>=3.10' -y
conda activate mineru
pip install -U "magic-pdf[full]" -i https://mirrors.aliyun.com/pypi/simple
```
下载模型
```sh
pip install modelscope
curl -o download_models.py https://gcore.jsdelivr.net/gh/opendatalab/MinerU@master/scripts/download_models.py
python download_models.py
```
配置文件在 `magic-pdf.json`
使用
```sh
magic-pdf -p {some_pdf} -o {some_output_dir} -m auto
magic-pdf -p test.pdf -o test -m auto
```