build: sync detectron version (#440)

* Update detectron2 version in Dockerfile
* Update detectron2 version in docs
This commit is contained in:
qued 2023-04-03 18:47:43 -05:00 committed by GitHub
parent 555b95b8f7
commit 4211dda360
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -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:

View File

@ -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: