MinerU icon indicating copy to clipboard operation
MinerU copied to clipboard

File not found

Open yibie opened this issue 1 year ago • 1 comments

Description of the bug | 错误描述

No such file or directory: '~/tools/PDF-Extract-Kit/models/MFD/weights.pt'

But the file is here:

image

My config file:

{
    "bucket_info":{
        "bucket-name-1":["ak", "sk", "endpoint"],
        "bucket-name-2":["ak", "sk", "endpoint"]
    },
    "models-dir":"~/tools/PDF-Extract-Kit/models/",
    "device-mode":"cpu",
    "table-config": {
        "is_table_recog_enable": false,
        "max_time": 400
    }
}

How to reproduce the bug | 如何复现

Just run the command:

magic-pdf -p /Volumes/Collect/ebook/xxxxx.pdf -o ~/Documents/emacs/org/ref/ -m auto

Operating system | 操作系统

MacOS

Python version | Python 版本

3.10

Software version | 软件版本 (magic-pdf --version)

0.7.x

Device mode | 设备模式

cpu

yibie avatar Aug 25 '24 08:08 yibie

"models-dir":"~/tools/PDF-Extract-Kit/models/" ==> "models-dir":"/abs/path/to/tools/PDF-Extract-Kit/models/",

drunkpig avatar Aug 27 '24 02:08 drunkpig