From 4211dda360dce4bfdfa60e580739eab4cbe8a729 Mon Sep 17 00:00:00 2001 From: qued <64741807+qued@users.noreply.github.com> Date: Mon, 3 Apr 2023 18:47:43 -0500 Subject: [PATCH] build: sync detectron version (#440) * Update detectron2 version in Dockerfile * Update detectron2 version in docs --- Dockerfile | 2 +- Makefile | 2 +- README.md | 2 +- docs/source/installing.rst | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6f501df88..4361075db 100644 --- a/Dockerfile +++ b/Dockerfile @@ -80,7 +80,7 @@ RUN python3.8 -m pip install pip==${PIP_VERSION} && \ pip install --no-cache -r requirements/ingest-s3.txt && \ pip install --no-cache -r requirements/ingest-wikipedia.txt && \ pip install --no-cache -r requirements/local-inference.txt && \ - pip install --no-cache "detectron2@git+https://github.com/facebookresearch/detectron2.git@v0.6#egg=detectron2" + pip install --no-cache "detectron2@git+https://github.com/facebookresearch/detectron2.git@e2ce8dc#egg=detectron2" COPY example-docs example-docs COPY unstructured unstructured diff --git a/Makefile b/Makefile index 8987a66f4..3a67f401e 100644 --- a/Makefile +++ b/Makefile @@ -85,7 +85,7 @@ install-unstructured-inference: .PHONY: install-detectron2 install-detectron2: - pip install "detectron2@git+https://github.com/facebookresearch/detectron2.git@e2ce8dc1ab097891395d324abaffe9cf298503d1#egg=detectron2" + pip install "detectron2@git+https://github.com/facebookresearch/detectron2.git@e2ce8dc#egg=detectron2" ## install-local-inference: installs requirements for local inference .PHONY: install-local-inference diff --git a/README.md b/README.md index af7eee900..e09f77816 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ installation. NOTE: We do not currently support python 3.11, please use an older - `libreoffice` (MS Office docs) - If you are parsing PDFs, run the following to install the `detectron2` model, which `unstructured` uses for layout detection: - - `pip install "detectron2@git+https://github.com/facebookresearch/detectron2.git@v0.6#egg=detectron2"` + - `pip install "detectron2@git+https://github.com/facebookresearch/detectron2.git@e2ce8dc#egg=detectron2"` At this point, you should be able to run the following code: diff --git a/docs/source/installing.rst b/docs/source/installing.rst index b859a67e2..572190a26 100644 --- a/docs/source/installing.rst +++ b/docs/source/installing.rst @@ -18,7 +18,7 @@ installation. * ``pandocs`` (EPUBs) * If you are parsing PDFs, run the following to install the ``detectron2`` model, which ``unstructured`` uses for layout detection: - * ``pip install "detectron2@git+https://github.com/facebookresearch/detectron2.git@v0.6#egg=detectron2"`` + * ``pip install "detectron2@git+https://github.com/facebookresearch/detectron2.git@e2ce8dc#egg=detectron2"`` At this point, you should be able to run the following code: