mirror of
https://github.com/Unstructured-IO/unstructured.git
synced 2025-11-27 07:39:55 +00:00
build: sync detectron version (#440)
* Update detectron2 version in Dockerfile * Update detectron2 version in docs
This commit is contained in:
parent
555b95b8f7
commit
4211dda360
@ -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
|
||||
|
||||
2
Makefile
2
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
|
||||
|
||||
@ -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:
|
||||
|
||||
|
||||
@ -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:
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user