Skip to content

Commit

Permalink
Switch to Python >= 3.9 and update deps to latest
Browse files Browse the repository at this point in the history
- Fixes Dependabot alerts on scipy and tornado
  • Loading branch information
baudm committed Aug 21, 2023
1 parent 0d0f660 commit 83abcc0
Show file tree
Hide file tree
Showing 8 changed files with 173 additions and 208 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ PIP_COMPILE := pip-compile --quiet --no-header --allow-unsafe --resolver=backtra
.PHONY: reqs clean-reqs help

requirements/constraints.txt: requirements/*.in
CONSTRAINTS=/dev/null $(PIP_COMPILE) --strip-extras --output-file $@ $^ --extra-index-url https://download.pytorch.org/whl/cpu
CONSTRAINTS=/dev/null $(PIP_COMPILE) --output-file $@ $^ --extra-index-url https://download.pytorch.org/whl/cpu

requirements/%.txt: requirements/%.in requirements/constraints.txt
CONSTRAINTS=constraints.txt $(PIP_COMPILE) --no-annotate --output-file $@ $<
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ released under the BSD and MIT licenses, respectively (see corresponding `LICENS
An [interactive Gradio demo](https://huggingface.co/spaces/baudm/PARSeq-OCR) hosted at Hugging Face is available. The pretrained weights released here are used for the demo.

### Installation
Requires Python >= 3.8 and PyTorch >= 1.10 (until 1.13). The default requirements files will install the latest versions of the dependencies (as of June 1, 2023).
Requires Python >= 3.9 and PyTorch >= 1.10 (until 1.13). The default requirements files will install the latest versions of the dependencies (as of August 21, 2023).
```bash
# Use specific platform build. Other PyTorch 1.13 options: cu116, cu117, rocm5.2
platform=cpu
Expand Down
12 changes: 5 additions & 7 deletions requirements/bench.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
antlr4-python3-runtime==4.9.3
fvcore==0.1.5.post20221221
hydra-core==1.3.2
importlib-resources==5.12.0
iopath==0.1.10
numpy==1.24.3
numpy==1.25.2
omegaconf==2.3.0
packaging==23.1
pillow==9.5.0
pillow==10.0.0
portalocker==2.7.0
pyyaml==6.0
pyyaml==6.0.1
tabulate==0.9.0
termcolor==2.3.0
tqdm==4.65.0
typing-extensions==4.6.2
tqdm==4.66.1
typing-extensions==4.7.1
yacs==0.1.8
zipp==3.15.0
Loading

0 comments on commit 83abcc0

Please sign in to comment.