Skip to content

Commit 73e3015

Browse files
authored
[fix] Remove detectron2 from extras_require (#74)
1 parent ea3cc11 commit 73e3015

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

installation.md

+2-2
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 layoutparser[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 torch && pip install "git+https://github.com/facebookresearch/detectron2[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 layoutparser[detectron2]
29+
pip install 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

setup.py

-4
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,6 @@
6666
"torchvision",
6767
"effdet"
6868
],
69-
"detectron2": [
70-
"detectron2@git+https://github.com/facebookresearch/[email protected]#egg=detectron2"
71-
# Supporting detectron0.5 for compatibility with newer torch versions
72-
],
7369
"paddledetection": [
7470
"paddlepaddle==2.1.0"
7571
],

0 commit comments

Comments
 (0)