multimodal-art-projection / MAP-NEO

738 stars 70 forks source link

Can docment convert a standalone project? #4

Open lucasjinreal opened 1 month ago

lucasjinreal commented 1 month ago

It;s should be very useful it the entrance can be more easy to found

skyroot commented 1 month ago

can u run "python multi_thread_process_to_doc.py ./pdf --process-num 8" success??

lucasjinreal commented 1 month ago

can not run it on mac M1 CPU

lucasjinreal commented 1 month ago

python multi_thread_process_to_doc.py ./pdf usage: multi_thread_process_to_doc.py [-h] --recipe RECIPE [--loop] [--rest] [--build] [--config CONFIG] multi_thread_process_to_doc.py: error: the following arguments are required: --recipe

lucasjinreal commented 1 month ago

Why using fastdeploy, it as big as torch but acutally didn't get much speed boost.

InsaneGe commented 1 month ago

I have run through it by following commands on Windows Anaconda platform. conda create -n neo python=3.10 pip install -r requirements.txt python -m pip install fastdeploy-gpu-python -f https://www.paddlepaddle.org.cn/whl/fastdeploy.html conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118

Unfortunately I have to tell you is that the effect of pdf-parser is very mediocre, worse than calling the PPStructure when testing the Chinese paper pdf.

lucasjinreal commented 1 month ago

fastdeploy is the worse lib i have ever seen, it force to cuda11.8 even doesn't have support cuda12, and build from source it has tons of millions source to build even more than pytorch itself.....

I given it up due to my cuda is 12.1 don't want build a new enviroment for this...

tslyellow commented 1 week ago

I'm running it on a linux system, and I'm getting a little error following the steps you posted (the penultimate line of code isn't executing because of network issues, but executing the last line of code should have the same effect, right?) . Here's a picture of the problem I'm having, have you encountered this? If so, can you tell me how to fix it Thanks for the help! image

tslyellow commented 1 week ago

I have run through it by following commands on Windows Anaconda platform. conda create -n neo python=3.10 pip install -r requirements.txt python -m pip install fastdeploy-gpu-python -f https://www.paddlepaddle.org.cn/whl/fastdeploy.html conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118

Unfortunately I have to tell you is that the effect of pdf-parser is very mediocre, worse than calling the PPStructure when testing the Chinese paper pdf.

哥们 运行完你的四个命令能直接运行代码嘛? 我的还是不行欸,他老说cnstd库的xyxy24p不能导入,我看了一下源码,确实没有 你是怎么解决的呀?

1719384151892

InsaneGe commented 1 week ago

I have run through it by following commands on Windows Anaconda platform. conda create -n neo python=3.10 pip install -r requirements.txt python -m pip install fastdeploy-gpu-python -f https://www.paddlepaddle.org.cn/whl/fastdeploy.html conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118 Unfortunately I have to tell you is that the effect of pdf-parser is very mediocre, worse than calling the PPStructure when testing the Chinese paper pdf.

哥们 运行完你的四个命令能直接运行代码嘛? 我的还是不行欸,他老说cnstd库的xyxy24p不能导入,我看了一下源码,确实没有 你是怎么解决的呀?

1719384151892

It may have something to do with the system platform, I remember I tried it on Ubuntu first, then on Windows it worked as shown above.

tslyellow commented 1 week ago

Thanks for the reply! I just started doing it on Linux like you and now it doesn't work on Windows either, too bad!

------------------ 原始邮件 ------------------ 发件人: "multimodal-art-projection/MAP-NEO" @.>; 发送时间: 2024年6月26日(星期三) 下午2:49 @.>; @.**@.>; 主题: Re: [multimodal-art-projection/MAP-NEO] Can docment convert a standalone project? (Issue #4)

I have run through it by following commands on Windows Anaconda platform. conda create -n neo python=3.10 pip install -r requirements.txt python -m pip install fastdeploy-gpu-python -f https://www.paddlepaddle.org.cn/whl/fastdeploy.html conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118 Unfortunately I have to tell you is that the effect of pdf-parser is very mediocre, worse than calling the PPStructure when testing the Chinese paper pdf.

哥们 运行完你的四个命令能直接运行代码嘛? 我的还是不行欸,他老说cnstd库的xyxy24p不能导入,我看了一下源码,确实没有 你是怎么解决的呀?

It may have something to do with the system platform, I remember I tried it on Ubuntu first, then on Windows it worked as shown above.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>