Skip to content

Commit 05f9b61

Browse files
authored
fix(deps): add onnx as base requirement (#255)
`onnx` is required as an explicit dep for unstructured-inference -- it's not pulled in by `onnxruntime`. As discovered when bumping to unstructured-inference==0.7.5 in [this unstructured commit](Unstructured-IO/unstructured@1878da0).
1 parent b1dba87 commit 05f9b61

File tree

5 files changed

+14
-2
lines changed

5 files changed

+14
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.7.8
2+
3+
* Fix: include onnx as base dependency.
4+
15
## 0.7.7
26

37
• Fix a memory leak in DonutProcessor when using large images in numpy format

requirements/base.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ layoutparser[layoutmodels,tesseract]
33
python-multipart
44
huggingface-hub
55
opencv-python!=4.7.0.68
6+
onnx
67
# NOTE(benjamin): Pinned because onnxruntime changed the way quantization is done, and we need to update our code to support it
78
onnxruntime<1.16
89
# NOTE(alan): Pinned because this is when the most recent module we import appeared

requirements/base.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ numpy==1.23.0
7171
# contourpy
7272
# layoutparser
7373
# matplotlib
74+
# onnx
7475
# onnxruntime
7576
# opencv-python
7677
# pandas
@@ -80,6 +81,8 @@ numpy==1.23.0
8081
# transformers
8182
omegaconf==2.3.0
8283
# via effdet
84+
onnx==1.14.1
85+
# via -r requirements/base.in
8386
onnxruntime==1.15.1
8487
# via -r requirements/base.in
8588
opencv-python==4.8.1.78
@@ -112,7 +115,9 @@ pillow==10.0.1
112115
portalocker==2.8.2
113116
# via iopath
114117
protobuf==4.24.4
115-
# via onnxruntime
118+
# via
119+
# onnx
120+
# onnxruntime
116121
pycocotools==2.0.7
117122
# via effdet
118123
pycparser==2.21
@@ -185,6 +190,7 @@ typing-extensions==4.8.0
185190
# via
186191
# huggingface-hub
187192
# iopath
193+
# onnx
188194
# torch
189195
tzdata==2023.3
190196
# via pandas

requirements/sg.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ omegaconf==2.3.0
145145
# super-gradients
146146
onnx==1.13.0
147147
# via
148+
# -c requirements/base.in
148149
# onnx-simplifier
149150
# super-gradients
150151
onnx-simplifier==0.4.33
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.7.7" # pragma: no cover
1+
__version__ = "0.7.8" # pragma: no cover

0 commit comments

Comments
 (0)