建议收藏不迷路
这里是方便大家复制命令的文本
项目官网 https://github.com/opendatalab/MinerU
环境配置(cpu)(必做)
conda检测 conda --version
创建虚拟环境:conda create -n MinerU python=3.10
激活虚拟环境(默认名字) conda activate MinerU
依赖项1 pip install detectron2 --extra-index-url https://wheels.myhloli.com
依赖项2(先装1再装2不然装不全) pip install magic-pdf[full-cpu]==0.6.1
模型下载(必做)
先:git lfs install
后:git lfs clone https://www.modelscope.cn/wanderkid/PDF-Extract-Kit.git
环境配置(cuda)(有n卡选做)
配置pytorh+cudnn:pip install --force-reinstall torch==2.3.1 torchvision==0.18.1 --index-url https://download.pytorch.org/whl/cu118