Skip to content

Commit

Permalink
deps: fetch Torch wheels for same CUDA/CPU version
Browse files Browse the repository at this point in the history
  • Loading branch information
bertsky committed Feb 4, 2022
1 parent 249de05 commit 0a4ebf6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ deps:
if test "$$CUDA_VERSION" = CPU; then CUDA=cpu; \
else IFS=. CUDA=($$CUDA_VERSION) && CUDA=cu$${CUDA[0]}$${CUDA[1]}; \
fi && $(PIP) install -r requirements.txt \
-f "https://dl.fbaipublicfiles.com/detectron2/wheels/$$CUDA/torch1.10/index.html"
-f "https://dl.fbaipublicfiles.com/detectron2/wheels/$$CUDA/torch1.10/index.html" \
-f "https://download.pytorch.org/whl/$$CUDA/torch_stable.html"

# Install Python package via pip
install: deps
Expand Down
8 changes: 4 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
ocrd>=2.18
ocrd>=2.30
click>=7.0
scipy
numpy>=1.17.0
pillow>=7.1.2
scikit-image>=0.17.2
torch~=1.10
torchvision
detectron2
torch>=1.10.2
torchvision>=0.11.3
detectron2>=0.6

0 comments on commit 0a4ebf6

Please sign in to comment.