Skip to content

Commit df72ee6

Browse files
committed
Hack to fix ocrd_detectron2
Signed-off-by: Stefan Weil <[email protected]>
1 parent 69aab1b commit df72ee6

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ OCRD_EXECUTABLES += $(OCRD_DETECTRON2)
280280
OCRD_DETECTRON2 := $(BIN)/ocrd-detectron2-segment
281281
$(OCRD_DETECTRON2): ocrd_detectron2
282282
# . $(ACTIVATE_VENV) && $(MAKE) -C $< deps
283-
. $(ACTIVATE_VENV) && cd $< && pip install 'git+https://github.com/facebookresearch/detectron2.git' && pip install -r requirements.txt
283+
. $(ACTIVATE_VENV) && cd $< && pip install 'git+https://github.com/facebookresearch/detectron2.git' && pip install -r ../ocrd_detectron2-requirements.txt
284284
$(pip_install)
285285
endif
286286

ocrd_detectron2-requirements.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
ocrd>=2.30
2+
click>=7.0
3+
scipy
4+
numpy>=1.17.0
5+
pillow>=7.1.2
6+
scikit-image>=0.17.2
7+
torch>=1.10.1
8+
torchvision>=0.11.2
9+
detectron2>=0.6

0 commit comments

Comments
 (0)