Skip to content

Commit

Permalink
deps: remove layoutparser extras
Browse files Browse the repository at this point in the history
  • Loading branch information
MthwRobinson committed May 22, 2024
1 parent 81549a7 commit c13be41
Show file tree
Hide file tree
Showing 7 changed files with 66 additions and 251 deletions.
14 changes: 9 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
## 0.7.33-dev0

* deps: remove layoutparser optional dependencies

## 0.7.32

* refactor: remove all code related to filling inferred elements text from embedded text (pdfminer).
* refactor: remove all code related to filling inferred elements text from embedded text (pdfminer).
* bug: set the Chipper max_length variable

## 0.7.31

* refactor: remove all `cid` related code that was originally added to filter out invalid `pdfminer` text
* refactor: remove all `cid` related code that was originally added to filter out invalid `pdfminer` text
* enhancement: Wrapped hf_hub_download with a function that checks for local file before checking HF

## 0.7.30

* fix: table transformer doesn't return multiple cells with same coordinates
*
* fix: table transformer doesn't return multiple cells with same coordinates
*
## 0.7.29

* fix: table transformer predictions are now removed if confidence is below threshold
Expand Down Expand Up @@ -458,4 +462,4 @@ we have the mapping from standard language code to paddle language code.

## 0.2.0

* Initial release of unstructured-inference
* Initial release of unstructured-inference
2 changes: 1 addition & 1 deletion requirements/base.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-c constraints.in
layoutparser[layoutmodels,tesseract]
layoutparser
python-multipart
huggingface-hub
opencv-python!=4.7.0.68
Expand Down
99 changes: 16 additions & 83 deletions requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
#
# pip-compile requirements/base.in
#
antlr4-python3-runtime==4.9.3
# via omegaconf
certifi==2024.2.2
# via requests
cffi==1.16.0
Expand All @@ -16,73 +14,43 @@ charset-normalizer==3.3.2
# requests
coloredlogs==15.0.1
# via onnxruntime
contourpy==1.2.1
# via matplotlib
cryptography==42.0.5
cryptography==42.0.7
# via pdfminer-six
cycler==0.12.1
# via matplotlib
effdet==0.4.1
# via layoutparser
filelock==3.13.4
filelock==3.14.0
# via
# huggingface-hub
# torch
# transformers
flatbuffers==24.3.25
# via onnxruntime
fonttools==4.51.0
# via matplotlib
fsspec==2024.3.1
# via
# huggingface-hub
# torch
huggingface-hub==0.22.2
fsspec==2024.5.0
# via huggingface-hub
huggingface-hub==0.23.1
# via
# -r requirements/base.in
# timm
# tokenizers
# transformers
humanfriendly==10.0
# via coloredlogs
idna==3.7
# via requests
importlib-resources==6.4.0
# via matplotlib
iopath==0.1.10
# via layoutparser
jinja2==3.1.3
# via torch
kiwisolver==1.4.5
# via matplotlib
layoutparser[layoutmodels,tesseract]==0.3.4
layoutparser==0.3.4
# via -r requirements/base.in
markupsafe==2.1.5
# via jinja2
matplotlib==3.8.4
# via pycocotools
mpmath==1.3.0
# via sympy
networkx==3.2.1
# via torch
numpy==1.26.4
# via
# contourpy
# layoutparser
# matplotlib
# onnx
# onnxruntime
# opencv-python
# pandas
# pycocotools
# scipy
# torchvision
# transformers
omegaconf==2.3.0
# via effdet
onnx==1.16.0
# via -r requirements/base.in
onnxruntime==1.17.3
onnxruntime==1.18.0
# via -r requirements/base.in
opencv-python==4.9.0.80
# via
Expand All @@ -91,9 +59,7 @@ opencv-python==4.9.0.80
packaging==24.0
# via
# huggingface-hub
# matplotlib
# onnxruntime
# pytesseract
# transformers
pandas==2.2.2
# via layoutparser
Expand All @@ -106,31 +72,20 @@ pdfplumber==0.11.0
pillow==10.3.0
# via
# layoutparser
# matplotlib
# pdf2image
# pdfplumber
# pytesseract
# torchvision
portalocker==2.8.2
# via iopath
protobuf==5.26.1
# via
# onnx
# onnxruntime
pycocotools==2.0.7
# via effdet
pycparser==2.22
# via cffi
pyparsing==3.1.2
# via matplotlib
pypdfium2==4.29.0
pypdfium2==4.30.0
# via pdfplumber
pytesseract==0.3.10
# via layoutparser
python-dateutil==2.9.0.post0
# via
# matplotlib
# pandas
# via pandas
python-multipart==0.0.9
# via -r requirements/base.in
pytz==2024.1
Expand All @@ -139,59 +94,37 @@ pyyaml==6.0.1
# via
# huggingface-hub
# layoutparser
# omegaconf
# timm
# transformers
rapidfuzz==3.8.1
rapidfuzz==3.9.1
# via -r requirements/base.in
regex==2024.4.16
regex==2024.5.15
# via transformers
requests==2.31.0
requests==2.32.2
# via
# huggingface-hub
# transformers
safetensors==0.4.3
# via
# timm
# transformers
# via transformers
scipy==1.13.0
# via layoutparser
six==1.16.0
# via python-dateutil
sympy==1.12
# via
# onnxruntime
# torch
timm==0.9.16
# via effdet
# via onnxruntime
tokenizers==0.19.1
# via transformers
torch==2.2.2
# via
# effdet
# layoutparser
# timm
# torchvision
torchvision==0.17.2
# via
# effdet
# layoutparser
# timm
tqdm==4.66.2
tqdm==4.66.4
# via
# huggingface-hub
# iopath
# transformers
transformers==4.40.0
transformers==4.41.0
# via -r requirements/base.in
typing-extensions==4.11.0
# via
# huggingface-hub
# iopath
# torch
tzdata==2024.1
# via pandas
urllib3==2.2.1
# via requests
zipp==3.18.1
# via importlib-resources
Loading

0 comments on commit c13be41

Please sign in to comment.