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
e909145b
Unverified
Commit
e909145b
authored
Nov 02, 2024
by
Xiaomeng Zhao
Committed by
GitHub
Nov 02, 2024
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #844 from myhloli/dev
docs(tutorial): update magic-pdf command with output directory
parents
1514cf85
6bf83a82
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
12 deletions
+12
-12
README_Ubuntu_CUDA_Acceleration_en_US.md
docs/README_Ubuntu_CUDA_Acceleration_en_US.md
+3
-3
README_Ubuntu_CUDA_Acceleration_zh_CN.md
docs/README_Ubuntu_CUDA_Acceleration_zh_CN.md
+3
-3
README_Windows_CUDA_Acceleration_en_US.md
docs/README_Windows_CUDA_Acceleration_en_US.md
+3
-3
README_Windows_CUDA_Acceleration_zh_CN.md
docs/README_Windows_CUDA_Acceleration_zh_CN.md
+3
-3
No files found.
docs/README_Ubuntu_CUDA_Acceleration_en_US.md
View file @
e909145b
...
@@ -90,7 +90,7 @@ Download a sample file from the repository and test it.
...
@@ -90,7 +90,7 @@ Download a sample file from the repository and test it.
```
sh
```
sh
wget https://github.com/opendatalab/MinerU/raw/master/demo/small_ocr.pdf
wget https://github.com/opendatalab/MinerU/raw/master/demo/small_ocr.pdf
magic-pdf
-p
small_ocr.pdf
magic-pdf
-p
small_ocr.pdf
-o
./output
```
```
### 9. Test CUDA Acceleration
### 9. Test CUDA Acceleration
...
@@ -105,7 +105,7 @@ If your graphics card has at least **8GB** of VRAM, follow these steps to test C
...
@@ -105,7 +105,7 @@ If your graphics card has at least **8GB** of VRAM, follow these steps to test C
```
```
2.
Test CUDA acceleration with the following command:
2.
Test CUDA acceleration with the following command:
```sh
```sh
magic-pdf -p small_ocr.pdf
magic-pdf -p small_ocr.pdf
-o ./output
```
```
### 10. Enable CUDA Acceleration for OCR
### 10. Enable CUDA Acceleration for OCR
...
@@ -116,5 +116,5 @@ If your graphics card has at least **8GB** of VRAM, follow these steps to test C
...
@@ -116,5 +116,5 @@ If your graphics card has at least **8GB** of VRAM, follow these steps to test C
```
```
2.
Test OCR acceleration with the following command:
2.
Test OCR acceleration with the following command:
```sh
```sh
magic-pdf -p small_ocr.pdf
magic-pdf -p small_ocr.pdf
-o ./output
```
```
docs/README_Ubuntu_CUDA_Acceleration_zh_CN.md
View file @
e909145b
...
@@ -91,7 +91,7 @@ pip install -U magic-pdf[full] --extra-index-url https://wheels.myhloli.com -i h
...
@@ -91,7 +91,7 @@ pip install -U magic-pdf[full] --extra-index-url https://wheels.myhloli.com -i h
```
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
-p
small_ocr.pdf
magic-pdf
-p
small_ocr.pdf
-o
./output
```
```
## 9. 测试CUDA加速
## 9. 测试CUDA加速
...
@@ -109,7 +109,7 @@ magic-pdf -p small_ocr.pdf
...
@@ -109,7 +109,7 @@ magic-pdf -p small_ocr.pdf
**2.运行以下命令测试cuda加速效果**
**2.运行以下命令测试cuda加速效果**
```
bash
```
bash
magic-pdf
-p
small_ocr.pdf
magic-pdf
-p
small_ocr.pdf
-o
./output
```
```
> 提示:CUDA加速是否生效可以根据log中输出的各个阶段cost耗时来简单判断,通常情况下,`layout detection cost` 和 `mfr time` 应提速10倍以上。
> 提示:CUDA加速是否生效可以根据log中输出的各个阶段cost耗时来简单判断,通常情况下,`layout detection cost` 和 `mfr time` 应提速10倍以上。
...
@@ -125,7 +125,7 @@ python -m pip install paddlepaddle-gpu==3.0.0b1 -i https://www.paddlepaddle.org.
...
@@ -125,7 +125,7 @@ python -m pip install paddlepaddle-gpu==3.0.0b1 -i https://www.paddlepaddle.org.
**2.运行以下命令测试ocr加速效果**
**2.运行以下命令测试ocr加速效果**
```
bash
```
bash
magic-pdf
-p
small_ocr.pdf
magic-pdf
-p
small_ocr.pdf
-o
./output
```
```
> 提示:CUDA加速是否生效可以根据log中输出的各个阶段cost耗时来简单判断,通常情况下,`ocr cost`应提速10倍以上。
> 提示:CUDA加速是否生效可以根据log中输出的各个阶段cost耗时来简单判断,通常情况下,`ocr cost`应提速10倍以上。
docs/README_Windows_CUDA_Acceleration_en_US.md
View file @
e909145b
...
@@ -53,7 +53,7 @@ Download a sample file from the repository and test it.
...
@@ -53,7 +53,7 @@ Download a sample file from the repository and test it.
```
powershell
```
powershell
wget
https://github.com/opendatalab/MinerU/raw/master/demo/small_ocr.pdf -O small_ocr.pdf
wget
https://github.com/opendatalab/MinerU/raw/master/demo/small_ocr.pdf -O small_ocr.pdf
magic-pdf -p small_ocr.pdf
magic-pdf -p small_ocr.pdf
-o ./output
```
```
### 8. Test CUDA Acceleration
### 8. Test CUDA Acceleration
...
@@ -85,7 +85,7 @@ If your graphics card has at least 8GB of VRAM, follow these steps to test CUDA-
...
@@ -85,7 +85,7 @@ If your graphics card has at least 8GB of VRAM, follow these steps to test CUDA-
3.
**Run the following command to test CUDA acceleration**
:
3.
**Run the following command to test CUDA acceleration**
:
```
```
magic-pdf -p small_ocr.pdf
magic-pdf -p small_ocr.pdf
-o ./output
```
```
### 9. Enable CUDA Acceleration for OCR
### 9. Enable CUDA Acceleration for OCR
...
@@ -96,5 +96,5 @@ If your graphics card has at least 8GB of VRAM, follow these steps to test CUDA-
...
@@ -96,5 +96,5 @@ If your graphics card has at least 8GB of VRAM, follow these steps to test CUDA-
```
```
2.
**Run the following command to test OCR acceleration**
:
2.
**Run the following command to test OCR acceleration**
:
```
```
magic-pdf -p small_ocr.pdf
magic-pdf -p small_ocr.pdf
-o ./output
```
```
docs/README_Windows_CUDA_Acceleration_zh_CN.md
View file @
e909145b
...
@@ -54,7 +54,7 @@ pip install -U magic-pdf[full] --extra-index-url https://wheels.myhloli.com -i h
...
@@ -54,7 +54,7 @@ pip install -U magic-pdf[full] --extra-index-url https://wheels.myhloli.com -i h
```
powershell
```
powershell
wget
https://github.com/opendatalab/MinerU/raw/master/demo/small_ocr.pdf -O small_ocr.pdf
wget
https://github.com/opendatalab/MinerU/raw/master/demo/small_ocr.pdf -O small_ocr.pdf
magic-pdf -p small_ocr.pdf
magic-pdf -p small_ocr.pdf
-o ./output
```
```
## 8. 测试CUDA加速
## 8. 测试CUDA加速
...
@@ -86,7 +86,7 @@ pip install --force-reinstall torch==2.3.1 torchvision==0.18.1 --index-url https
...
@@ -86,7 +86,7 @@ pip install --force-reinstall torch==2.3.1 torchvision==0.18.1 --index-url https
**3.运行以下命令测试cuda加速效果**
**3.运行以下命令测试cuda加速效果**
```
bash
```
bash
magic-pdf
-p
small_ocr.pdf
magic-pdf
-p
small_ocr.pdf
-o
./output
```
```
> 提示:CUDA加速是否生效可以根据log中输出的各个阶段的耗时来简单判断,通常情况下,`layout detection time` 和 `mfr time` 应提速10倍以上。
> 提示:CUDA加速是否生效可以根据log中输出的各个阶段的耗时来简单判断,通常情况下,`layout detection time` 和 `mfr time` 应提速10倍以上。
...
@@ -102,7 +102,7 @@ pip install paddlepaddle-gpu==2.6.1
...
@@ -102,7 +102,7 @@ pip install paddlepaddle-gpu==2.6.1
**2.运行以下命令测试ocr加速效果**
**2.运行以下命令测试ocr加速效果**
```
bash
```
bash
magic-pdf
-p
small_ocr.pdf
magic-pdf
-p
small_ocr.pdf
-o
./output
```
```
> 提示:CUDA加速是否生效可以根据log中输出的各个阶段cost耗时来简单判断,通常情况下,`ocr time`应提速10倍以上。
> 提示:CUDA加速是否生效可以根据log中输出的各个阶段cost耗时来简单判断,通常情况下,`ocr time`应提速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