mirror of
https://github.com/qurator-spk/eynollah.git
synced 2025-10-06 14:39:55 +02:00
make training dependencies optional-dependencies of eynollah
i.e. `pip install "eynollah[training]"` will install the requirements for training
This commit is contained in:
parent
733af1e9a7
commit
48266b1ee0
5 changed files with 13 additions and 11 deletions
|
@ -13,7 +13,11 @@ license.file = "LICENSE"
|
|||
requires-python = ">=3.8"
|
||||
keywords = ["document layout analysis", "image segmentation"]
|
||||
|
||||
dynamic = ["dependencies", "version"]
|
||||
dynamic = [
|
||||
"dependencies",
|
||||
"optional-dependencies",
|
||||
"version"
|
||||
]
|
||||
|
||||
classifiers = [
|
||||
"Development Status :: 4 - Beta",
|
||||
|
@ -25,10 +29,6 @@ classifiers = [
|
|||
"Topic :: Scientific/Engineering :: Image Processing",
|
||||
]
|
||||
|
||||
[project.optional-dependencies]
|
||||
OCR = ["torch <= 2.0.1", "transformers <= 4.30.2"]
|
||||
plotting = ["matplotlib"]
|
||||
|
||||
[project.scripts]
|
||||
eynollah = "eynollah.cli:main"
|
||||
ocrd-eynollah-segment = "eynollah.ocrd_cli:main"
|
||||
|
@ -41,6 +41,9 @@ Repository = "https://github.com/qurator-spk/eynollah.git"
|
|||
[tool.setuptools.dynamic]
|
||||
dependencies = {file = ["requirements.txt"]}
|
||||
optional-dependencies.test = {file = ["requirements-test.txt"]}
|
||||
optional-dependencies.OCR = {file = ["requirements-ocr.txt"]}
|
||||
optional-dependencies.plotting = {file = ["requirements-plotting.txt"]}
|
||||
optional-dependencies.training = {file = ["requirements-training.txt"]}
|
||||
|
||||
[tool.setuptools.packages.find]
|
||||
where = ["src"]
|
||||
|
|
2
requirements-ocr.txt
Normal file
2
requirements-ocr.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
torch <= 2.0.1
|
||||
transformers <= 4.30.2
|
1
requirements-plotting.txt
Normal file
1
requirements-plotting.txt
Normal file
|
@ -0,0 +1 @@
|
|||
matplotlib
|
1
requirements-training.txt
Symbolic link
1
requirements-training.txt
Symbolic link
|
@ -0,0 +1 @@
|
|||
train/requirements.txt
|
|
@ -1,11 +1,6 @@
|
|||
tensorflow == 2.12.1
|
||||
# tensorflow == 2.12.1 # TODO why not tensorflow < 2.13 as in eynollah/requirements.txt
|
||||
sacred
|
||||
opencv-python-headless
|
||||
seaborn
|
||||
tqdm
|
||||
imutils
|
||||
numpy
|
||||
scipy
|
||||
scikit-learn
|
||||
shapely
|
||||
click
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue