-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING CHANGE: remove legacy
detectron2
model; remove layoutparse…
…r extras (#350) ### Summary First step in resolving Unstructured-IO/unstructured#3051. Per [this comment](Unstructured-IO/unstructured#3051 (comment)), we were having troubling running `unstructured` in the Python 3.12 `wolfi-base` contain due to issues related to `pycocotools`, which is only used for the legacy `detectron2` model from `layoutparser`. Since we've replaced this with `detectron2onnx`, this PR removes the `layoutparser` extra dependencies that caused issues with Python 3.12. The `layoutparser` base dependency is still required because we use layout objects from that library. It's likely we could remove these in a future iteration. Temporarily disabled the ingest tests, because they seem to have been broken for the past six months. Last commit that they passed for was [this one](0f0c2be). Opened #352 to reenable them. ### Testing If CI passes we should be good to go.
- Loading branch information
1 parent
81549a7
commit 7b2125b
Showing
12 changed files
with
121 additions
and
288 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
-c constraints.in | ||
layoutparser[layoutmodels,tesseract] | ||
layoutparser | ||
python-multipart | ||
huggingface-hub | ||
opencv-python!=4.7.0.68 | ||
onnx | ||
onnxruntime>=1.17.0 | ||
matplotlib | ||
torch | ||
timm | ||
# NOTE(alan): Pinned because this is when the most recent module we import appeared | ||
transformers>=4.25.1 | ||
rapidfuzz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.