Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pdf-miner
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Qin Kaijie
pdf-miner
Commits
18f82ab7
Unverified
Commit
18f82ab7
authored
Aug 09, 2024
by
sfk
Committed by
GitHub
Aug 09, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README_Ubuntu_CUDA_Acceleration_zh_CN.md
parent
b44a7df9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
README_Ubuntu_CUDA_Acceleration_zh_CN.md
docs/README_Ubuntu_CUDA_Acceleration_zh_CN.md
+5
-5
No files found.
docs/README_Ubuntu_CUDA_Acceleration_zh_CN.md
View file @
18f82ab7
...
@@ -43,14 +43,14 @@ conda activate MinerU
...
@@ -43,14 +43,14 @@ conda activate MinerU
```
```
## 5. 安装应用
## 5. 安装应用
```
bash
```
bash
pip
install
magic-pdf[full]
==
0.
6.2b1 detectron2
--extra-index-url
https://wheels.myhloli.com
-i
https://pypi.tuna.tsinghua.edu.cn/simple
pip
install
magic-pdf[full]
==
0.
7.0b1
--extra-index-url
https://wheels.myhloli.com
-i
https://pypi.tuna.tsinghua.edu.cn/simple
```
```
> ❗️下载完成后,务必通过以下命令确认magic-pdf的版本是否正确
> ❗️下载完成后,务必通过以下命令确认magic-pdf的版本是否正确
>
>
> ```bash
> ```bash
> magic-pdf --version
> magic-pdf --version
>```
>```
> 如果版本号小于0.
6.2
,请到issue中向我们反馈
> 如果版本号小于0.
7.0
,请到issue中向我们反馈
## 6. 下载模型
## 6. 下载模型
详细参考
[
如何下载模型文件
](
how_to_download_models_zh_cn.md
)
详细参考
[
如何下载模型文件
](
how_to_download_models_zh_cn.md
)
...
@@ -82,7 +82,7 @@ cp magic-pdf.template.json ~/magic-pdf.json
...
@@ -82,7 +82,7 @@ cp magic-pdf.template.json ~/magic-pdf.json
从仓库中下载样本文件,并测试
从仓库中下载样本文件,并测试
```
bash
```
bash
wget https://gitee.com/myhloli/MinerU/raw/master/demo/small_ocr.pdf
wget https://gitee.com/myhloli/MinerU/raw/master/demo/small_ocr.pdf
magic-pdf
pdf-command
--pdf
small_ocr.pdf
magic-pdf
-p
small_ocr.pdf
```
```
## 9. 测试CUDA加速
## 9. 测试CUDA加速
如果您的显卡显存大于等于8G,可以进行以下流程,测试CUDA解析加速效果
如果您的显卡显存大于等于8G,可以进行以下流程,测试CUDA解析加速效果
...
@@ -95,7 +95,7 @@ magic-pdf pdf-command --pdf small_ocr.pdf
...
@@ -95,7 +95,7 @@ magic-pdf pdf-command --pdf small_ocr.pdf
```
```
**2.运行以下命令测试cuda加速效果**
**2.运行以下命令测试cuda加速效果**
```
bash
```
bash
magic-pdf
pdf-command
--pdf
small_ocr.pdf
magic-pdf
-p
small_ocr.pdf
```
```
> 提示:CUDA加速是否生效可以根据log中输出的各个阶段cost耗时来简单判断,通常情况下,`layout detection cost` 和 `mfr time` 应提速10倍以上。
> 提示:CUDA加速是否生效可以根据log中输出的各个阶段cost耗时来简单判断,通常情况下,`layout detection cost` 和 `mfr time` 应提速10倍以上。
...
@@ -108,6 +108,6 @@ python -m pip install paddlepaddle-gpu==3.0.0b1 -i https://www.paddlepaddle.org.
...
@@ -108,6 +108,6 @@ python -m pip install paddlepaddle-gpu==3.0.0b1 -i https://www.paddlepaddle.org.
```
```
**2.运行以下命令测试ocr加速效果**
**2.运行以下命令测试ocr加速效果**
```
bash
```
bash
magic-pdf
pdf-command
--pdf
small_ocr.pdf
magic-pdf
-p
small_ocr.pdf
```
```
> 提示:CUDA加速是否生效可以根据log中输出的各个阶段cost耗时来简单判断,通常情况下,`ocr cost`应提速10倍以上。
> 提示:CUDA加速是否生效可以根据log中输出的各个阶段cost耗时来简单判断,通常情况下,`ocr cost`应提速10倍以上。
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment