Skip to content

Commit

Permalink
packaging: update onnxruntime pin (#337)
Browse files Browse the repository at this point in the history
**Summary**
Update pin on onnxruntime dependency. The prior constraint is no longer necessary and now produces conflicts on some installations.
  • Loading branch information
scanny authored Apr 19, 2024
1 parent 147c5b1 commit 45ebc1f
Show file tree
Hide file tree
Showing 14 changed files with 218 additions and 207 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.7.27

* fix: remove pin from `onnxruntime` dependency.

## 0.7.26

* feat: add a set of new `ElementType`s to extend future element types recognition
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[tool.black]
line-length = 100
3 changes: 1 addition & 2 deletions requirements/base.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ python-multipart
huggingface-hub
opencv-python!=4.7.0.68
onnx
# NOTE(benjamin): Pinned because onnxruntime changed the way quantization is done, and we need to update our code to support it
onnxruntime<1.16
onnxruntime>=1.17.0
# NOTE(alan): Pinned because this is when the most recent module we import appeared
transformers>=4.25.1
rapidfuzz
93 changes: 46 additions & 47 deletions requirements/base.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#
# This file is autogenerated by pip-compile with Python 3.8
# This file is autogenerated by pip-compile with Python 3.9
# by the following command:
#
# pip-compile requirements/base.in
#
antlr4-python3-runtime==4.9.3
# via omegaconf
certifi==2023.7.22
certifi==2024.2.2
# via requests
cffi==1.16.0
# via cryptography
Expand All @@ -16,56 +16,56 @@ charset-normalizer==3.3.2
# requests
coloredlogs==15.0.1
# via onnxruntime
contourpy==1.1.1
contourpy==1.2.1
# via matplotlib
cryptography==41.0.5
cryptography==42.0.5
# via pdfminer-six
cycler==0.12.1
# via matplotlib
effdet==0.4.1
# via layoutparser
filelock==3.13.1
filelock==3.13.4
# via
# huggingface-hub
# torch
# transformers
flatbuffers==23.5.26
flatbuffers==24.3.25
# via onnxruntime
fonttools==4.44.3
fonttools==4.51.0
# via matplotlib
fsspec==2023.10.0
fsspec==2024.3.1
# via
# huggingface-hub
# torch
huggingface-hub==0.19.4
huggingface-hub==0.22.2
# via
# -r requirements/base.in
# timm
# tokenizers
# transformers
humanfriendly==10.0
# via coloredlogs
idna==3.4
idna==3.7
# via requests
importlib-resources==6.1.1
importlib-resources==6.4.0
# via matplotlib
iopath==0.1.10
# via layoutparser
jinja2==3.1.2
jinja2==3.1.3
# via torch
kiwisolver==1.4.5
# via matplotlib
layoutparser[layoutmodels,tesseract]==0.3.4
# via -r requirements/base.in
markupsafe==2.1.3
markupsafe==2.1.5
# via jinja2
matplotlib==3.7.3
matplotlib==3.8.4
# via pycocotools
mpmath==1.3.0
# via sympy
networkx==3.1
networkx==3.2.1
# via torch
numpy==1.24.4
numpy==1.26.4
# via
# contourpy
# layoutparser
Expand All @@ -80,30 +80,30 @@ numpy==1.24.4
# transformers
omegaconf==2.3.0
# via effdet
onnx==1.15.0
onnx==1.16.0
# via -r requirements/base.in
onnxruntime==1.15.1
onnxruntime==1.17.3
# via -r requirements/base.in
opencv-python==4.8.1.78
opencv-python==4.9.0.80
# via
# -r requirements/base.in
# layoutparser
packaging==23.2
packaging==24.0
# via
# huggingface-hub
# matplotlib
# onnxruntime
# pytesseract
# transformers
pandas==2.0.3
pandas==2.2.2
# via layoutparser
pdf2image==1.16.3
pdf2image==1.17.0
# via layoutparser
pdfminer-six==20221105
pdfminer-six==20231228
# via pdfplumber
pdfplumber==0.10.3
pdfplumber==0.11.0
# via layoutparser
pillow==10.1.0
pillow==10.3.0
# via
# layoutparser
# matplotlib
Expand All @@ -113,27 +113,27 @@ pillow==10.1.0
# torchvision
portalocker==2.8.2
# via iopath
protobuf==4.25.1
protobuf==5.26.1
# via
# onnx
# onnxruntime
pycocotools==2.0.7
# via effdet
pycparser==2.21
pycparser==2.22
# via cffi
pyparsing==3.1.1
pyparsing==3.1.2
# via matplotlib
pypdfium2==4.24.0
pypdfium2==4.29.0
# via pdfplumber
pytesseract==0.3.10
# via layoutparser
python-dateutil==2.8.2
python-dateutil==2.9.0.post0
# via
# matplotlib
# pandas
python-multipart==0.0.6
python-multipart==0.0.9
# via -r requirements/base.in
pytz==2023.3.post1
pytz==2024.1
# via pandas
pyyaml==6.0.1
# via
Expand All @@ -142,57 +142,56 @@ pyyaml==6.0.1
# omegaconf
# timm
# transformers
rapidfuzz==3.5.2
rapidfuzz==3.8.1
# via -r requirements/base.in
regex==2023.10.3
regex==2024.4.16
# via transformers
requests==2.31.0
# via
# huggingface-hub
# torchvision
# transformers
safetensors==0.4.0
safetensors==0.4.3
# via
# timm
# transformers
scipy==1.10.1
scipy==1.13.0
# via layoutparser
six==1.16.0
# via python-dateutil
sympy==1.12
# via
# onnxruntime
# torch
timm==0.9.10
timm==0.9.16
# via effdet
tokenizers==0.15.0
tokenizers==0.19.1
# via transformers
torch==2.1.1
torch==2.2.2
# via
# effdet
# layoutparser
# timm
# torchvision
torchvision==0.16.1
torchvision==0.17.2
# via
# effdet
# layoutparser
# timm
tqdm==4.66.1
tqdm==4.66.2
# via
# huggingface-hub
# iopath
# transformers
transformers==4.35.2
transformers==4.40.0
# via -r requirements/base.in
typing-extensions==4.8.0
typing-extensions==4.11.0
# via
# huggingface-hub
# iopath
# torch
tzdata==2023.3
tzdata==2024.1
# via pandas
urllib3==2.1.0
urllib3==2.2.1
# via requests
zipp==3.17.0
zipp==3.18.1
# via importlib-resources
Loading

0 comments on commit 45ebc1f

Please sign in to comment.