添加“解析PDF到md(MinerU)”插件#2112
Open
xunge wants to merge 4 commits intobinary-husky:masterfrom
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
使用
MinerU解析PDF文档到Markdown。(支持版本-1.0.1)由于MinerU环境与gpt_academic冲突,需要事先创建好名字为
MinerU的Conda环境。安装命令如下:
conda create -n MinerU python=3.10 conda activate MinerU pip install -U 'magic-pdf[full]' --extra-index-url https://wheels.myhloli.com默认使用CPU,使用GPU加速至少需要8GB显存,需要修改
~/magic-pdf.json中的device-mode为cuda。如果Conda环境名字不是
MinerU,可以在高级参数输入区输入Conda环境名称。