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
b983238d
Unverified
Commit
b983238d
authored
Feb 13, 2025
by
Xiaomeng Zhao
Committed by
GitHub
Feb 13, 2025
Browse files
Merge pull request #1683 from myhloli/dev
docs(readme): update Docker run commands and environment setup
parents
6323f28b
619aabd2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
README.md
README.md
+3
-3
README_zh-CN.md
README_zh-CN.md
+3
-3
docs/README_Ascend_NPU_Acceleration_zh_CN.md
docs/README_Ascend_NPU_Acceleration_zh_CN.md
+1
-1
No files found.
README.md
View file @
b983238d
...
@@ -244,8 +244,8 @@ Synced with dev branch updates:
...
@@ -244,8 +244,8 @@ Synced with dev branch updates:
#### 1. Install magic-pdf
#### 1. Install magic-pdf
```
bash
```
bash
conda create
-n
M
iner
U
python
=
3.10
conda create
-n
m
iner
u
python
=
3.10
conda activate
M
iner
U
conda activate
m
iner
u
pip
install
-U
"magic-pdf[full]"
--extra-index-url
https://wheels.myhloli.com
pip
install
-U
"magic-pdf[full]"
--extra-index-url
https://wheels.myhloli.com
```
```
...
@@ -305,7 +305,7 @@ If your device supports CUDA and meets the GPU requirements of the mainline envi
...
@@ -305,7 +305,7 @@ If your device supports CUDA and meets the GPU requirements of the mainline envi
```
bash
```
bash
wget https://github.com/opendatalab/MinerU/raw/master/docker/global/Dockerfile
-O
Dockerfile
wget https://github.com/opendatalab/MinerU/raw/master/docker/global/Dockerfile
-O
Dockerfile
docker build
-t
mineru:latest
.
docker build
-t
mineru:latest
.
docker run
-
-rm
-it
--gpus
=
all mineru:latest /bin/bash
-c
"echo 'source /opt/mineru_venv/bin/activate' >> ~/.bashrc && exec bash"
docker run
-
it
--name
mineru
--gpus
=
all mineru:latest /bin/bash
-c
"echo 'source /opt/mineru_venv/bin/activate' >> ~/.bashrc && exec bash"
magic-pdf
--help
magic-pdf
--help
```
```
...
...
README_zh-CN.md
View file @
b983238d
...
@@ -248,8 +248,8 @@ https://github.com/user-attachments/assets/4bea02c9-6d54-4cd6-97ed-dff14340982c
...
@@ -248,8 +248,8 @@ https://github.com/user-attachments/assets/4bea02c9-6d54-4cd6-97ed-dff14340982c
> 最新版本国内镜像源同步可能会有延迟,请耐心等待
> 最新版本国内镜像源同步可能会有延迟,请耐心等待
```
bash
```
bash
conda create
-n
M
iner
U
python
=
3.10
conda create
-n
m
iner
u
python
=
3.10
conda activate
M
iner
U
conda activate
m
iner
u
pip
install
-U
"magic-pdf[full]"
--extra-index-url
https://wheels.myhloli.com
-i
https://mirrors.aliyun.com/pypi/simple
pip
install
-U
"magic-pdf[full]"
--extra-index-url
https://wheels.myhloli.com
-i
https://mirrors.aliyun.com/pypi/simple
```
```
...
@@ -308,7 +308,7 @@ pip install -U "magic-pdf[full]" --extra-index-url https://wheels.myhloli.com -i
...
@@ -308,7 +308,7 @@ pip install -U "magic-pdf[full]" --extra-index-url https://wheels.myhloli.com -i
```
bash
```
bash
wget https://gcore.jsdelivr.net/gh/opendatalab/MinerU@master/docker/china/Dockerfile
-O
Dockerfile
wget https://gcore.jsdelivr.net/gh/opendatalab/MinerU@master/docker/china/Dockerfile
-O
Dockerfile
docker build
-t
mineru:latest
.
docker build
-t
mineru:latest
.
docker run
-
-rm
-it
--gpus
=
all mineru:latest /bin/bash
-c
"echo 'source /opt/mineru_venv/bin/activate' >> ~/.bashrc && exec bash"
docker run
-
it
--name
mineru
--gpus
=
all mineru:latest /bin/bash
-c
"echo 'source /opt/mineru_venv/bin/activate' >> ~/.bashrc && exec bash"
magic-pdf
--help
magic-pdf
--help
```
```
### 使用NPU
### 使用NPU
...
...
docs/README_Ascend_NPU_Acceleration_zh_CN.md
View file @
b983238d
...
@@ -25,7 +25,7 @@ docker build -t mineru_npu:latest .
...
@@ -25,7 +25,7 @@ docker build -t mineru_npu:latest .
## 运行容器
## 运行容器
```
bash
```
bash
docker run
--rm
-it
-u
root
--privileged
=
true
\
docker run
-it
-u
root
--name
mineru-npu
--privileged
=
true
\
--ipc
=
host
\
--ipc
=
host
\
--network
=
host
\
--network
=
host
\
--device
=
/dev/davinci0
\
--device
=
/dev/davinci0
\
...
...
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