deltaid 0.1.0a1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. deltaid-0.1.0a1/CHANGELOG.md +39 -0
  2. deltaid-0.1.0a1/LICENSE +21 -0
  3. deltaid-0.1.0a1/MANIFEST.in +9 -0
  4. deltaid-0.1.0a1/PKG-INFO +645 -0
  5. deltaid-0.1.0a1/README.md +554 -0
  6. deltaid-0.1.0a1/deltaid/__init__.py +60 -0
  7. deltaid-0.1.0a1/deltaid/_keras.py +16 -0
  8. deltaid-0.1.0a1/deltaid/_tensorflow.py +37 -0
  9. deltaid-0.1.0a1/deltaid/cli.py +92 -0
  10. deltaid-0.1.0a1/deltaid/fastai_segmenter.py +229 -0
  11. deltaid-0.1.0a1/deltaid/huggingface_model.py +135 -0
  12. deltaid-0.1.0a1/deltaid/huggingface_segmenter.py +313 -0
  13. deltaid-0.1.0a1/deltaid/jax_segmenter.py +349 -0
  14. deltaid-0.1.0a1/deltaid/keras_segmentation.py +102 -0
  15. deltaid-0.1.0a1/deltaid/keras_segmenter.py +141 -0
  16. deltaid-0.1.0a1/deltaid/lightning_segmenter.py +152 -0
  17. deltaid-0.1.0a1/deltaid/mlx_segmenter.py +312 -0
  18. deltaid-0.1.0a1/deltaid/py.typed +0 -0
  19. deltaid-0.1.0a1/deltaid/segmentation_base.py +106 -0
  20. deltaid-0.1.0a1/deltaid/segmentation_keras.py +120 -0
  21. deltaid-0.1.0a1/deltaid/segmentation_torch.py +88 -0
  22. deltaid-0.1.0a1/deltaid/smp_model.py +256 -0
  23. deltaid-0.1.0a1/deltaid/tensorflow_segmenter.py +149 -0
  24. deltaid-0.1.0a1/deltaid/torch_segmentation.py +126 -0
  25. deltaid-0.1.0a1/deltaid/torch_segmenter.py +148 -0
  26. deltaid-0.1.0a1/deltaid/unet/__init__.py +10 -0
  27. deltaid-0.1.0a1/deltaid/unet/flax_unet.py +223 -0
  28. deltaid-0.1.0a1/deltaid/unet/keras_unet.py +162 -0
  29. deltaid-0.1.0a1/deltaid/unet/mlx_unet.py +263 -0
  30. deltaid-0.1.0a1/deltaid/unet/spec.py +135 -0
  31. deltaid-0.1.0a1/deltaid/unet/tensorflow_unet.py +253 -0
  32. deltaid-0.1.0a1/deltaid/unet/torch_unet.py +219 -0
  33. deltaid-0.1.0a1/deltaid.egg-info/PKG-INFO +645 -0
  34. deltaid-0.1.0a1/deltaid.egg-info/SOURCES.txt +61 -0
  35. deltaid-0.1.0a1/deltaid.egg-info/dependency_links.txt +1 -0
  36. deltaid-0.1.0a1/deltaid.egg-info/entry_points.txt +24 -0
  37. deltaid-0.1.0a1/deltaid.egg-info/requires.txt +79 -0
  38. deltaid-0.1.0a1/deltaid.egg-info/top_level.txt +1 -0
  39. deltaid-0.1.0a1/pyproject.toml +297 -0
  40. deltaid-0.1.0a1/setup.cfg +4 -0
  41. deltaid-0.1.0a1/tests/test_binary_segmentation.py +97 -0
  42. deltaid-0.1.0a1/tests/test_categories.py +169 -0
  43. deltaid-0.1.0a1/tests/test_cli_frameworks.py +227 -0
  44. deltaid-0.1.0a1/tests/test_cli_no_sys_path_pollution.py +50 -0
  45. deltaid-0.1.0a1/tests/test_coverage_config.py +45 -0
  46. deltaid-0.1.0a1/tests/test_docs_links.py +193 -0
  47. deltaid-0.1.0a1/tests/test_entry_points.py +104 -0
  48. deltaid-0.1.0a1/tests/test_fastai_segmenter.py +429 -0
  49. deltaid-0.1.0a1/tests/test_huggingface_segmenter.py +364 -0
  50. deltaid-0.1.0a1/tests/test_jax_segmenter.py +385 -0
  51. deltaid-0.1.0a1/tests/test_keras_segmenter.py +355 -0
  52. deltaid-0.1.0a1/tests/test_lazy_slots.py +136 -0
  53. deltaid-0.1.0a1/tests/test_lightning_segmenter.py +652 -0
  54. deltaid-0.1.0a1/tests/test_mlx_segmenter.py +403 -0
  55. deltaid-0.1.0a1/tests/test_model_refs.py +42 -0
  56. deltaid-0.1.0a1/tests/test_packaging.py +134 -0
  57. deltaid-0.1.0a1/tests/test_smp_model.py +181 -0
  58. deltaid-0.1.0a1/tests/test_sweep_config.py +267 -0
  59. deltaid-0.1.0a1/tests/test_tensorflow_segmenter.py +326 -0
  60. deltaid-0.1.0a1/tests/test_torch_segmenter.py +302 -0
  61. deltaid-0.1.0a1/tests/test_tracking_parity.py +281 -0
  62. deltaid-0.1.0a1/tests/test_unet_spec.py +493 -0
  63. deltaid-0.1.0a1/tests/test_version.py +14 -0
@@ -0,0 +1,39 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project are documented here. The format follows
4
+ [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the versioning is
5
+ [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [0.1.0a1] — 2026-09-28
8
+
9
+ First public pre-release. The surface it ships:
10
+
11
+ ### Backends
12
+ - **Eight training engines over one config**, each a runnable class behind its own extra:
13
+ `LightningSegmenter` (`[lightning]`, the reference), `TorchSegmenter` (`[torch]`, a
14
+ hand-written loop), `FastaiSegmenter` (`[fastai]`), `KerasSegmenter` (`[keras]`),
15
+ `TensorFlowSegmenter` (`[tensorflow]`), `HuggingFaceSegmenter` (`[huggingface]`),
16
+ `JaxSegmenter` (`[jax]`) and `MlxSegmenter` (`[mlx]`, Apple silicon). Each runnable dispatches
17
+ on `task`: `fit` / `evaluate` / `test` / `predict`.
18
+ - **Backend-free core:** `import deltaid` loads no ML framework. Touching a backend that is not
19
+ installed raises an `ImportError` naming the extra to install.
20
+
21
+ ### Models
22
+ - `SegmentationModelPytorch` — every `segmentation_models_pytorch` architecture and encoder as
23
+ configuration knobs (`arch`, `encoder_name`, `encoder_weights`).
24
+ - `HuggingFaceSegmentationModel` — any Hub semantic-segmentation checkpoint by name.
25
+ - The `deltaid.unet` package: one U-Net spec with five native implementations (`TorchUNet`,
26
+ `KerasUNet`, `TensorFlowUNet`, `FlaxUNet`, `MlxUNet`) whose parameter counts are checked
27
+ against the spec, for comparing engines on one network.
28
+
29
+ ### Losses, metrics and results
30
+ - Registered segmentation losses and metrics per engine, per-split metric choices, mIoU and a
31
+ per-class confusion matrix; `num_classes` resolved from the data (binary segmentation is
32
+ `num_classes: 2`).
33
+ - Predicted masks streamed to the configured sink.
34
+
35
+ ### Command line
36
+ - `deltaid train | evaluate | predict <config.yaml> [--framework <name>]` and
37
+ `deltaid frameworks`; the same config also runs under `recordstream run`.
38
+ - An end-to-end example on Oxford-IIIT Pet (`examples/train_unet_oxford_pets.yaml`) and a sweep
39
+ that runs one config under every backend.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Gert Behiels
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,9 @@
1
+ # What the sdist ships BEYOND what setuptools already infers.
2
+ #
3
+ # `readme = "README.md"` and `license-files = ["LICENSE"]` in pyproject already pull those
4
+ # two in, and `packages.find` + `[tool.setuptools.package-data]` pull the package. A
5
+ # CHANGELOG is referenced by nothing, so without this line it is silently absent from the
6
+ # sdist — which is the only copy of it a reader has while the repository is private.
7
+ #
8
+ # Pinned by tests/test_packaging.py::test_the_changelog_is_shipped_in_the_sdist
9
+ include CHANGELOG.md