From 4f5689a4daff3768402024bd8580f485f8d35a11 Mon Sep 17 00:00:00 2001 From: myhloli Date: Tue, 6 Aug 2024 19:08:46 +0800 Subject: [PATCH] docs(cuda-acceleration): update PowerShell examples and formatting in README --- docs/README_Windows_CUDA_Acceleration_en_US.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/README_Windows_CUDA_Acceleration_en_US.md b/docs/README_Windows_CUDA_Acceleration_en_US.md index 956d83ec..05fd776e 100644 --- a/docs/README_Windows_CUDA_Acceleration_en_US.md +++ b/docs/README_Windows_CUDA_Acceleration_en_US.md @@ -7,7 +7,8 @@ Required versions: CUDA 11.8 + cuDNN 8.7.0 ### 2. Install Anaconda If Anaconda is already installed, you can skip this step. - Download link: https://repo.anaconda.com/archive/Anaconda3-2024.06-1-Windows-x86_64.exe + +Download link: https://repo.anaconda.com/archive/Anaconda3-2024.06-1-Windows-x86_64.exe ### 3. Create an Environment Using Conda Python version must be 3.10. @@ -41,7 +42,7 @@ Required versions: CUDA 11.8 + cuDNN 8.7.0 > > In Windows, user directory is "C:\Users\username" - ``` + ```powershell (New-Object System.Net.WebClient).DownloadFile('https://github.com/opendatalab/MinerU/raw/master/magic-pdf.template.json', 'magic-pdf.template.json') cp magic-pdf.template.json ~/magic-pdf.json ``` @@ -54,7 +55,7 @@ Required versions: CUDA 11.8 + cuDNN 8.7.0 > > Example: If the models are placed in the root directory of drive D, the value for `model-dir` should be `"D:/models"`. - ``` + ```json { "models-dir": "/tmp/models" } @@ -62,7 +63,7 @@ Required versions: CUDA 11.8 + cuDNN 8.7.0 ### 7. First Run Download a sample file from the repository and test it. - ``` + ```powershell (New-Object System.Net.WebClient).DownloadFile('https://github.com/opendatalab/MinerU/raw/master/demo/small_ocr.pdf', 'small_ocr.pdf') magic-pdf pdf-command --pdf small_ocr.pdf ```