Skip to content

Commit

Permalink
Patch installed detectron2 (fix issue bertsky#26)
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Jul 3, 2023
1 parent 7302b4a commit cf969dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ deps:
-r <(sed -n "/torch/p" requirements.txt) && \
$(PIP) install --no-build-isolation -f "https://dl.fbaipublicfiles.com/detectron2/wheels/$$CUDA/torch1.10/index.html" \
"git+https://github.com/facebookresearch/[email protected]#egg=detectron2"
# Patch installed detectron2 to fix issue #26.
sed -i~ s/interp=Image.LINEAR/interp=Image.BILINEAR/ $$($(PIP) show detectron2|grep Location|sed s/Location:.//)/detectron2/data/transforms/transform.py

# Install Python package via pip
install: deps
Expand Down

0 comments on commit cf969dc

Please sign in to comment.