-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
87 lines (78 loc) · 2.55 KB
/
pyproject.toml
File metadata and controls
87 lines (78 loc) · 2.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
[project]
name = "mosaic"
version = "0.1.0"
authors = [
{ name="Sander Moonemans", email="[email protected]" },
]
description = "mosaic is a framework for training vision-language models for computational pathology. The code has been released as part of the paper 'Pathology Report Generation and Multimodal Representation Learning for Cutaneous Melanocytic Lesions' by Lucassen et al. (2025)."
readme = "README.md"
requires-python = ">=3.10"
keywords = ["machine learning", "natural language processing"]
license = { text = "Apache 2.0" }
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"torch==2.4.1",
"transformers==4.44.1",
"numpy==2.0.1",
"peft==0.12.0",
"sacremoses==0.1.1",
"scikit-learn==1.5.1",
"tensorboard==2.17.1",
"pandas==2.2.2",
"language-tool-python==2.8.1",
"lorem-text==2.1",
"matplotlib==3.9.2",
"evaluate==0.4.3",
"rouge-score==0.1.2",
"nltk==3.9.1", # for evaluate meteor
"h5py==3.12.1",
"expecttest==0.2.1",
# Note, please install pycocoevalcap manually, as it is not available on PyPI.
]
[project.urls]
Homepage = "https://github.com/SanderMoon/MOSAIC"
Repository = "https://github.com/SanderMoon/MOSAIC"
"Bug Tracker" = "https://github.com/SanderMoon/MOSAIC/issues"
"Changelog" = "https://github.com/SanderMoon/MOSAIC/releases"
[project.optional-dependencies]
dev = [
"pytest==8.3.2",
"pytest-cov==5.0.0",
"debugpy==1.8.2",
"black==24.8.0",
"mypy", # For type checking
"isort", # For import sorting
"flake8", # For linting
"pre-commit", # For managing pre-commit hooks
]
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
packages = ["mosaic"] # Replace with the actual name of your package directory
package-dir = {"" = "src"}
[tool.black]
line-length = 88
target-version = ['py311']
[tool.pytest.ini_options]
min_version = "8.3.2"
addopts = "--cov=mosaic --cov-report=term-missing" # Adjust 'your_project_name'
testpaths = [
"tests",
]
[tool.mypy]
python_version = "3.11" # Adjust based on your minimum Python version
warn_return_any = true
warn_unused_configs = true
[tool.isort]
profile = "black"
line_length = 88