Sfoglia il codice sorgente

Merge pull request #844 from myhloli/dev

docs(tutorial): update magic-pdf command with output directory
Xiaomeng Zhao 1 anno fa
parent
commit
e909145b31

+ 3 - 3
docs/README_Ubuntu_CUDA_Acceleration_en_US.md

@@ -90,7 +90,7 @@ Download a sample file from the repository and test it.
 
 ```sh
 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
@@ -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:
    ```sh
-   magic-pdf -p small_ocr.pdf
+   magic-pdf -p small_ocr.pdf -o ./output
    ```
 
 ### 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
    ```
 2. Test OCR acceleration with the following command:
    ```sh
-   magic-pdf -p small_ocr.pdf
+   magic-pdf -p small_ocr.pdf -o ./output
    ```

+ 3 - 3
docs/README_Ubuntu_CUDA_Acceleration_zh_CN.md

@@ -91,7 +91,7 @@ pip install -U magic-pdf[full] --extra-index-url https://wheels.myhloli.com -i h
 
 ```bash
 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加速
@@ -109,7 +109,7 @@ magic-pdf -p small_ocr.pdf
 **2.运行以下命令测试cuda加速效果**
 
 ```bash
-magic-pdf -p small_ocr.pdf
+magic-pdf -p small_ocr.pdf -o ./output
 ```
 
 > 提示: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.
 **2.运行以下命令测试ocr加速效果**
 
 ```bash
-magic-pdf -p small_ocr.pdf
+magic-pdf -p small_ocr.pdf -o ./output
 ```
 
 > 提示:CUDA加速是否生效可以根据log中输出的各个阶段cost耗时来简单判断,通常情况下,`ocr cost`应提速10倍以上。

+ 3 - 3
docs/README_Windows_CUDA_Acceleration_en_US.md

@@ -53,7 +53,7 @@ Download a sample file from the repository and test it.
 
 ```powershell
   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
@@ -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**:
 
    ```
-   magic-pdf -p small_ocr.pdf
+   magic-pdf -p small_ocr.pdf -o ./output
    ```
 
 ### 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-
    ```
 2. **Run the following command to test OCR acceleration**:
    ```
-   magic-pdf -p small_ocr.pdf
+   magic-pdf -p small_ocr.pdf -o ./output
    ```

+ 3 - 3
docs/README_Windows_CUDA_Acceleration_zh_CN.md

@@ -54,7 +54,7 @@ pip install -U magic-pdf[full] --extra-index-url https://wheels.myhloli.com -i h
 
 ```powershell
  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加速
@@ -86,7 +86,7 @@ pip install --force-reinstall torch==2.3.1 torchvision==0.18.1 --index-url https
 **3.运行以下命令测试cuda加速效果**
 
 ```bash
-magic-pdf -p small_ocr.pdf
+magic-pdf -p small_ocr.pdf -o ./output
 ```
 
 > 提示:CUDA加速是否生效可以根据log中输出的各个阶段的耗时来简单判断,通常情况下,`layout detection time` 和 `mfr time` 应提速10倍以上。
@@ -102,7 +102,7 @@ pip install paddlepaddle-gpu==2.6.1
 **2.运行以下命令测试ocr加速效果**
 
 ```bash
-magic-pdf -p small_ocr.pdf
+magic-pdf -p small_ocr.pdf -o ./output
 ```
 
 > 提示:CUDA加速是否生效可以根据log中输出的各个阶段cost耗时来简单判断,通常情况下,`ocr time`应提速10倍以上。