Skip to content

Commit c4f2781

Browse files
committed
docs: update README
1 parent ca33b3e commit c4f2781

File tree

5 files changed

+13
-14
lines changed

5 files changed

+13
-14
lines changed

.github/workflows/publish_whl.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,8 @@ jobs:
2626

2727
- name: Unit testings
2828
run: |
29-
wget $RESOURCES_URL
30-
ZIP_NAME=${RESOURCES_URL##*/}
31-
DIR_NAME=${ZIP_NAME%.*}
32-
33-
unzip $DIR_NAME
34-
cp $DIR_NAME/*.onnx rapid_layout/models/
3529
pip install -r requirements.txt
36-
pip install pytest wheel
30+
pip install pytest wheel onnxruntime
3731
pytest tests/test*.py
3832
3933
GenerateWHL_PushPyPi:

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ from rapid_layout import EngineType, ModelType, RapidLayout, RapidLayoutInput
6363
cfg = RapidLayoutInput()
6464
layout_engine = RapidLayout(cfg=cfg)
6565

66-
img_path = "https://raw.githubusercontent.com/opendatalab/DocLayout-YOLO/refs/heads/main/assets/example/financial.jpg"
66+
img_path = "https://raw.githubusercontent.com/RapidAI/RapidLayout/refs/heads/develop/tests/test_files/layout.jpg"
6767
results = layout_engine(img_path)
6868
print(results)
6969

@@ -73,7 +73,7 @@ results.vis("layout_res.png")
7373
### 可视化结果
7474

7575
<div align="center">
76-
<img src="https://github.com/RapidAI/RapidLayout/releases/download/v0.0.0/layout_res.png" width="80%" height="80%">
76+
<img src="https://github.com/RapidAI/RapidLayout/releases/download/v0.0.0/layout_vis.jpg" width="80%" height="80%">
7777
</div>
7878

7979
#### 终端运行
@@ -111,7 +111,7 @@ cfg = RapidLayoutInput(
111111
)
112112
layout_engine = RapidLayout(cfg=cfg)
113113

114-
img_path = "https://raw.githubusercontent.com/opendatalab/DocLayout-YOLO/refs/heads/main/assets/example/financial.jpg"
114+
img_path = "https://raw.githubusercontent.com/RapidAI/RapidLayout/refs/heads/develop/tests/test_files/layout.jpg"
115115
results = layout_engine(img_path)
116116
print(results)
117117

@@ -132,7 +132,7 @@ cfg = RapidLayoutInput(
132132
)
133133
layout_engine = RapidLayout(cfg=cfg)
134134

135-
img_path = "https://raw.githubusercontent.com/opendatalab/DocLayout-YOLO/refs/heads/main/assets/example/financial.jpg"
135+
img_path = "https://raw.githubusercontent.com/RapidAI/RapidLayout/refs/heads/develop/tests/test_files/layout.jpg"
136136
results = layout_engine(img_path)
137137
print(results)
138138

demo.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
# @Contact: [email protected]
44
from rapid_layout import EngineType, ModelType, RapidLayout, RapidLayoutInput
55

6-
cfg = RapidLayoutInput()
7-
layout_engine = RapidLayout(cfg=cfg)
6+
layout_engine = RapidLayout()
87

9-
img_path = "https://raw.githubusercontent.com/opendatalab/DocLayout-YOLO/refs/heads/main/assets/example/financial.jpg"
8+
img_path = "https://raw.githubusercontent.com/RapidAI/RapidLayout/refs/heads/develop/tests/test_files/layout.jpg"
109
results = layout_engine(img_path)
1110
print(results)
1211

rapid_layout/configs/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# -*- encoding: utf-8 -*-
2+
# @Author: SWHL
3+
# @Contact: [email protected]

rapid_layout/models/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# -*- encoding: utf-8 -*-
2+
# @Author: SWHL
3+
# @Contact: [email protected]

0 commit comments

Comments
 (0)