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
4f5689a4
Commit
4f5689a4
authored
Aug 06, 2024
by
myhloli
Browse files
docs(cuda-acceleration): update PowerShell examples and formatting in README
parent
d3e42e08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
docs/README_Windows_CUDA_Acceleration_en_US.md
docs/README_Windows_CUDA_Acceleration_en_US.md
+5
-4
No files found.
docs/README_Windows_CUDA_Acceleration_en_US.md
View file @
4f5689a4
...
@@ -7,7 +7,8 @@ Required versions: CUDA 11.8 + cuDNN 8.7.0
...
@@ -7,7 +7,8 @@ Required versions: CUDA 11.8 + cuDNN 8.7.0
### 2. Install Anaconda
### 2. Install Anaconda
If Anaconda is already installed, you can skip this step.
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
### 3. Create an Environment Using Conda
Python version must be 3.10.
Python version must be 3.10.
...
@@ -41,7 +42,7 @@ Required versions: CUDA 11.8 + cuDNN 8.7.0
...
@@ -41,7 +42,7 @@ Required versions: CUDA 11.8 + cuDNN 8.7.0
>
>
> In Windows, user directory is "C:\Users\username"
> 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'
)
(
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
cp
magic-pdf.template.json
~/magic-pdf.json
```
```
...
@@ -54,7 +55,7 @@ Required versions: CUDA 11.8 + cuDNN 8.7.0
...
@@ -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"`.
> 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"
"models-dir"
:
"/tmp/models"
}
}
...
@@ -62,7 +63,7 @@ Required versions: CUDA 11.8 + cuDNN 8.7.0
...
@@ -62,7 +63,7 @@ Required versions: CUDA 11.8 + cuDNN 8.7.0
### 7. First Run
### 7. First Run
Download a sample file from the repository and test it.
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'
)
(
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
magic-pdf
pdf-command
--pdf
small_ocr.pdf
```
```
...
...
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