Skip to content

Commit

Permalink
[fix] Remove detectron2 from extras_require (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
lolipopshock authored Sep 13, 2021
1 parent ea3cc11 commit 73e3015
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ After several major updates, LayoutParser provides various functionalities and d
| --- | --- |
| `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 |
| `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. |
| `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). |
| `pip install torch && pip install "git+https://github.com/facebookresearch/detectron2.git@v0.5#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). |
| `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. |
| `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). |

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

```bash
pip install torch && pip install layoutparser[detectron2]
pip install torch && pip install "detectron2@git+https://github.com/facebookresearch/detectron2.git@v0.5#egg=detectron2"
```

This might take some time as the command will *compile* the library. If you also want to install a Detectron2 version
Expand Down
4 changes: 0 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,6 @@
"torchvision",
"effdet"
],
"detectron2": [
"detectron2@git+https://github.com/facebookresearch/detectron2.git@v0.5#egg=detectron2"
# Supporting detectron0.5 for compatibility with newer torch versions
],
"paddledetection": [
"paddlepaddle==2.1.0"
],
Expand Down

0 comments on commit 73e3015

Please sign in to comment.