Skip to content

Commit 24d8673

Browse files
authored
build(deps): update detectron2 (#154)
I noticed an issue that basic operations in this library were causing import errors. This turned out to be caused by the new version of PIL completing deprecation of certain references (specifically PIL.Image.LINEAR) used in the pinned version of detectron2 that we've been using. Updating to the latest commit of detectron2 fixes the problem.
1 parent 66590e3 commit 24d8673

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
## 0.5.6-dev1
1+
## 0.5.6-dev2
22

33
* Warns users that Chipper is a beta model.
44
* Exposed control over dpi when converting PDF to an image.
5+
* Updated detectron2 version to avoid errors related to deprecated PIL reference
56

67
## 0.5.5
78

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ install-base-pip-packages:
2929

3030
.PHONY: install-detectron2
3131
install-detectron2:
32-
pip install "detectron2@git+https://github.com/facebookresearch/detectron2.git@e2ce8dc#egg=detectron2"
32+
pip install "detectron2@git+https://github.com/facebookresearch/detectron2.git@a2e43ea#egg=detectron2"
3333

3434
.PHONY: install-paddleocr
3535
install-paddleocr:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Run `pip install unstructured-inference`.
2525
but is not automatically installed with this package.
2626
For MacOS and Linux, build from source with:
2727
```shell
28-
pip install 'git+https://github.com/facebookresearch/detectron2.git@e2ce8dc#egg=detectron2'
28+
pip install 'git+https://github.com/facebookresearch/detectron2.git@a2e43ea#egg=detectron2'
2929
```
3030
Other install options can be found in the
3131
[Detectron2 installation guide](https://detectron2.readthedocs.io/en/latest/tutorials/install.html).
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.5.6-dev1" # pragma: no cover
1+
__version__ = "0.5.6-dev2" # pragma: no cover

0 commit comments

Comments
 (0)