Skip to content

Commit f89a18f

Browse files
committed
Update the installation command
1 parent 52ce56b commit f89a18f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

installation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ After several major updates, LayoutParser provides various functionalities and d
1515
| --- | --- |
1616
| `pip install layoutparser` | **Install the base LayoutParser Library**<br>It will support all key functions in LayoutParser, including:<br />1. Layout Data Structure and operations<br />2. Layout Visualization <br />3. Load/export the layout data |
1717
| `pip install layoutparser[effdet]` | **Install LayoutParser with Layout Detection Model Support**<br />It will install the LayoutParser base library as well as<br />supporting dependencies for the ***EfficientDet***-based layout detection models. |
18-
| `pip install torch && pip install "git+https://github.com/facebookresearch/[email protected]#egg=detectron2"` | **Install LayoutParser with Layout Detection Model Support**<br />It will install the LayoutParser base library as well as<br />supporting dependencies for the ***Detectron2***-based layout detection models. See details in [Additional Instruction: Install Detectron2 Layout Model Backend](#additional-instruction-install-detectron2-layout-model-backend). |
18+
| `pip install layoutparser torch && pip install "git+https://github.com/facebookresearch/[email protected]#egg=detectron2"` | **Install LayoutParser with Layout Detection Model Support**<br />It will install the LayoutParser base library as well as<br />supporting dependencies for the ***Detectron2***-based layout detection models. See details in [Additional Instruction: Install Detectron2 Layout Model Backend](#additional-instruction-install-detectron2-layout-model-backend). |
1919
| `pip install layoutparser[paddledetection]` | **Install LayoutParser with Layout Detection Model Support**<br />It will install the LayoutParser base library as well as<br />supporting dependencies for the ***PaddleDetection***-based layout detection models. |
2020
| `pip install layoutparser[ocr]` | **Install LayoutParser with OCR Support**<br />It will install the LayoutParser base library as well as<br />supporting dependencies for performing OCRs. See details in [Additional Instruction: Install OCR utils](#additional-instruction-install-ocr-utils). |
2121

@@ -26,7 +26,7 @@ After several major updates, LayoutParser provides various functionalities and d
2626
If you would like to use the Detectron2 models for layout detection, you might need to run the following command:
2727

2828
```bash
29-
pip install torch && pip install "detectron2@git+https://github.com/facebookresearch/[email protected]#egg=detectron2"
29+
pip install layoutparser torch && pip install "detectron2@git+https://github.com/facebookresearch/[email protected]#egg=detectron2"
3030
```
3131

3232
This might take some time as the command will *compile* the library. If you also want to install a Detectron2 version
@@ -64,7 +64,7 @@ Additionally, if you want to use the Tesseract-OCR engine, you also need to inst
6464

6565
In this case, you have a newer version of the google-cloud-vision. Please consider downgrading the API using:
6666
```bash
67-
pip install layoutparser[ocr]
67+
pip install -U layoutparser[ocr]
6868
```
6969
</p>
7070
</details>

0 commit comments

Comments
 (0)