Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
MinerU
Commits
ece8dac4
"projects/git@developer.sourcefind.cn:wangsen/mineru.git" did not exist on "c2a18cbb047e9ab81a1e1d6cd49b4e2f6906cde5"
Unverified
Commit
ece8dac4
authored
Aug 09, 2024
by
sfk
Committed by
GitHub
Aug 09, 2024
Browse files
Update README_Windows_CUDA_Acceleration_zh_CN.md
parent
409ece82
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
docs/README_Windows_CUDA_Acceleration_zh_CN.md
docs/README_Windows_CUDA_Acceleration_zh_CN.md
+4
-4
No files found.
docs/README_Windows_CUDA_Acceleration_zh_CN.md
View file @
ece8dac4
...
@@ -20,7 +20,7 @@ conda activate MinerU
...
@@ -20,7 +20,7 @@ conda activate MinerU
```
```
## 4. 安装应用
## 4. 安装应用
```
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的版本是否正确
>
>
...
@@ -62,7 +62,7 @@ cp magic-pdf.template.json ~/magic-pdf.json
...
@@ -62,7 +62,7 @@ cp magic-pdf.template.json ~/magic-pdf.json
从仓库中下载样本文件,并测试
从仓库中下载样本文件,并测试
```
powershell
```
powershell
(
New-Object
System.Net.WebClient
)
.
DownloadFile
(
'https://gitee.com/myhloli/MinerU/raw/master/demo/small_ocr.pdf'
,
'small_ocr.pdf'
)
(
New-Object
System.Net.WebClient
)
.
DownloadFile
(
'https://gitee.com/myhloli/MinerU/raw/master/demo/small_ocr.pdf'
,
'small_ocr.pdf'
)
magic-pdf
p
df-command
--pdf
small_ocr.pdf
magic-pdf
-
p
small_ocr.pdf
```
```
## 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
df-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倍以上。
...
@@ -99,7 +99,7 @@ pip install paddlepaddle-gpu==2.6.1
...
@@ -99,7 +99,7 @@ pip install paddlepaddle-gpu==2.6.1
```
```
**2.运行以下命令测试ocr加速效果**
**2.运行以下命令测试ocr加速效果**
```
bash
```
bash
magic-pdf p
df-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