Skip to content

Commit 0096dac

Browse files
committed
Fix the pypi uploading issue
1 parent 3013a20 commit 0096dac

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
run: |
2222
python -m pip install --upgrade pip
2323
pip install .
24-
pip install .[modeling]
24+
pip install 'git+https://github.com/facebookresearch/detectron2.git@v0.1.3#egg=detectron2'
2525
2626
- name: Lint with flake8
2727
run: |

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,17 @@
1515
---
1616

1717
Layout Parser is deep learning based tool for document image layout analysis tasks.
18+
19+
## Quick Start
20+
21+
1. Install the package
22+
```bash
23+
pip install layoutparser
24+
25+
# Install Detectron2 for using DL Layout Detection Model
26+
pip install 'git+https://github.com/facebookresearch/detectron2.git@v0.1.3#egg=detectron2'
27+
28+
# Install the ocr components when necessary
29+
pip install layoutparser[ocr]
30+
```
31+

setup.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,13 @@
2626
"pyyaml>=5.1",
2727
"torch==1.4",
2828
"torchvision==0.5",
29+
"pycocotools",
2930
],
3031
extras_require={
3132
"ocr": [
3233
'google-cloud-vision',
3334
'pytesseract'
3435
],
35-
"modeling": [
36-
"pycocotools",
37-
"detectron2 @ git+https://github.com/facebookresearch/detectron2.git@v0.1.3#egg=detectron2",
38-
]
3936
},
4037
include_package_data=True
4138
)

0 commit comments

Comments
 (0)