|
[project]
|
|
name = "traiNNer-redux"
|
|
requires-python = ">=3.11"
|
|
dynamic = ["version"]
|
|
dependencies = [
|
|
"ema-pytorch",
|
|
"msgspec",
|
|
"numpy>=2",
|
|
"opencv-python",
|
|
"Pillow",
|
|
"pytorch-optimizer>=3.4.2",
|
|
"pyvips>=2.2.3",
|
|
"pyvips-binary>=8.16.0",
|
|
"pyyaml",
|
|
"requests",
|
|
"rich",
|
|
"safetensors",
|
|
"scikit-image",
|
|
"scipy",
|
|
"spandrel>=0.4.0",
|
|
"spandrel-extra-arches>=0.2.0",
|
|
"tb-nightly",
|
|
"timm",
|
|
"torch>=2.7.0",
|
|
"torchvision",
|
|
"tqdm",
|
|
]
|
|
authors = [{name = "the-database"}]
|
|
description = "Deep learning training framework for image super resolution and restoration."
|
|
readme = "README.md"
|
|
license = {file = "LICENSE.txt"}
|
|
keywords = ["machine learning", "deep learning", "neural network", "pytorch", "super resolution", "upscale", "image restoration" ]
|
|
|
|
[project.optional-dependencies]
|
|
dev = ["ruff", "pyright", "pytest", "syrupy", "torchfix"]
|
|
onnx = ["onnx", "onnxruntime", "onnxconverter-common", "onnxslim"]
|
|
docs = ["sphinx", "sphinx-rtd-theme"]
|
|
scripts = ["chainner_ext", "matplotlib", "pandas"]
|
|
segmentation = ["segmentation_models_pytorch"]
|
|
|
|
[project.urls]
|
|
Repository = "https://github.com/the-database/traiNNer-redux.git"
|
|
|
|
[tool.setuptools.packages.find]
|
|
where = ["."]
|
|
include = ["traiNNer"]
|
|
exclude = []
|
|
namespaces = false
|
|
|
|
[tool.ruff]
|
|
|
|
line-length = 88
|
|
indent-width = 4
|
|
|
|
src = ["traiNNer"]
|
|
|
|
unsafe-fixes = true
|
|
|
|
[tool.ruff.lint]
|
|
|
|
extend-select = [
|
|
"UP",
|
|
"E",
|
|
"W",
|
|
"F",
|
|
"I",
|
|
"N",
|
|
|
|
"ANN001",
|
|
"ANN002",
|
|
"ANN201",
|
|
"ANN202",
|
|
"ANN204",
|
|
"ANN205",
|
|
"ANN206",
|
|
|
|
"PL",
|
|
"RUF",
|
|
"B",
|
|
|
|
|
|
"C4",
|
|
"FA",
|
|
"ISC",
|
|
"ICN",
|
|
"G",
|
|
|
|
"PIE",
|
|
|
|
"Q",
|
|
|
|
"SLF",
|
|
|
|
|
|
"NPY",
|
|
"NPY201",
|
|
]
|
|
ignore = [
|
|
"E501",
|
|
"PLR2004",
|
|
"PLR0911",
|
|
"PLR0912",
|
|
"PLR0913",
|
|
"PLR0915",
|
|
"E741",
|
|
"E712",
|
|
"F821",
|
|
"F403",
|
|
"PLW0603",
|
|
"N999",
|
|
"N818",
|
|
"ISC001",
|
|
]
|
|
unfixable = [
|
|
"F841",
|
|
"F401"
|
|
]
|
|
[tool.ruff.format]
|
|
|
|
quote-style = "double"
|
|
|
|
|
|
indent-style = "space"
|
|
|
|
|
|
skip-magic-trailing-comma = false
|
|
|
|
|
|
line-ending = "auto"
|
|
|
|
[tool.uv.pip]
|
|
extra-index-url = ["https://download.pytorch.org/whl/cu121"]
|
|
|