微信扫码
和创始人交个朋友
我要投稿
pip install magic-pdf
cp magic-pdf.template.json ~/magic-pdf.json
magic-pdf pdf-command --pdf "pdf_path" --model "model_json_path"
图像
,表格
,标题
,文本
等;行内公式
和行间公式
;conda create -n pdfpipeline python=3.10
git clone https://github.com/opendatalab/PDF-Extract-Kit.git
pip3 install -r requirements+cpu.txt
pip install https://github.com/opendatalab/PDF-Extract-Kit/raw/main/assets/whl/detectron2-0.6-cp310-cp310-macosx_11_0_arm64.whl
PDF-Extract-Kit/configs/model_configs.yaml:2
PDF-Extract-Kit/modules/layoutlmv3/layoutlmv3_base_inference.yaml:72
git lfs clone https://huggingface.co/wanderkid/PDF-Extract-Kit
python pdf_extract.py --pdf data/pdfs/ocr_1.pdf
File "/Users/linyu/ai/PDF-Extract-Kit/modules/layoutlmv3/layoutlmft/models/layoutlmv3/modeling_layoutlmv3.py", line 71, in forward
position_embedding = F.interpolate(position_embedding, size=(Hp, Wp), mode='bicubic')
NotImplementedError: The operator 'aten::upsample_bicubic2d.out' is not currently implemented for the MPS device. If you want this op to be added in priority during the prototype phase of this feature, please comment on https://github.com/pytorch/pytorch/issues/77764. As a temporary fix, you can set the environment variable `PYTORCH_ENABLE_MPS_FALLBACK=1` to use the CPU as a fallback for this op. WARNING: this will be slower than running natively on MPS.
export PYTORCH_ENABLE_MPS_FALLBACK=1
或者在py 运行文件中加import os
os.environ['PYTORCH_ENABLE_MPS_FALLBACK'] = '1'
RuntimeError: Expected repeatBuffer && cumsumBuffer && resultBuffer to be true, but got false.
magic-pdf pdf-command --pdf "/Users/linyu/ai/pdf储能政策知识库/《“十四五”能源领域科技创新规划》2021.pdf" --model ""
53AI,企业落地大模型首选服务商
产品:场景落地咨询+大模型应用平台+行业解决方案
承诺:免费场景POC验证,效果验证后签署服务协议。零风险落地应用大模型,已交付160+中大型企业
2025-02-20
全球首次!国产AI开源端侧GPT-4o海外爆火,8B参数iPad就能跑
2025-02-20
成人用品用上DeepSeek,广东AI硅胶娃娃不续费就失忆
2025-02-20
太颠覆!DeepSeek支持的RPA框架开源! RPA行业彻底被颠覆了
2025-02-20
开源力量:四个平替 OpenAI Deep Research AI Agent 的强大工具,搭配Deepseek真香
2025-02-19
OpenAI将开源新模型!选择权交给网友,承认闭源策略错误
2025-02-19
大语言模型应用开发框架 —— Eino 正式开源!
2025-02-19
DeepSeek满血微调秘籍开源了
2025-02-18
PLG助DeepSeek破局
2025-01-01
2024-07-25
2024-05-06
2025-01-21
2024-09-20
2024-07-20
2024-08-13
2024-06-12
2024-12-26
2024-07-11
2025-02-18
2025-02-15
2025-02-15
2025-02-12
2025-02-07
2025-01-22
2025-01-16
2024-12-24