wsi-patching 0.5.0__tar.gz → 0.5.1__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.
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/.github/workflows/docs.yml +2 -2
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/PKG-INFO +8 -8
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/README.md +7 -7
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/docs/installation.md +2 -2
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/.github/workflows/integration_tests.yaml +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/.github/workflows/publish.yaml +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/.github/workflows/unit_tests.yaml +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/.gitignore +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/LICENSE +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/docs/concepts.md +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/docs/extending.md +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/docs/index.md +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/docs/quickstart.md +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/docs/reference.md +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/examples/numpy_stream_writer_demo.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/examples/torch_stream_writer_demo.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/examples/webdataset_materialize_writer_demo.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/mkdocs.yml +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/pyproject.toml +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/__init__.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/annotations/__init__.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/annotations/add_cell_annotation_from_csv.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/assets/models/cellvit_tissue_detector.pt +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/backends/__init__.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/backends/cupy_numpy.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/backends/fastslide.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/backends/torch_device.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/core/__init__.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/core/chunking_and_batching.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/core/pipeline.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/core/types/__init__.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/core/types/types.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/core/types/util_types.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/core/wsi_grid.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/custom_component/__init__.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/encoders/__init__.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/encoders/pngencoder.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/filtering/__init__.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/filtering/cellvit_tissue_classifier_filter.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/filtering/low_contrast_background_filter.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/filtering/otsu_filter.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/filtering/pen_artifact_filter.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/py.typed +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/regions_of_interest/__init__.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/regions_of_interest/attach_rois.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/regions_of_interest/roi_providers.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/regions_of_interest/rois.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/transforms/__init__.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/transforms/macenko_normalizer.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/transforms/reinhard_normalizer.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/utils/__init__.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/utils/logging_config.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/utils/meta_typing.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/utils/profiling.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/utils/wsi_thumbnail_visualization.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/writers/__init__.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/writers/materialize_writers/__init__.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/writers/materialize_writers/materialize_writer_base.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/writers/materialize_writers/webdataset/__init__.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/writers/materialize_writers/webdataset/webdataset_loader.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/writers/materialize_writers/webdataset/webdataset_writer.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/writers/stream_writers/__init__.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/writers/stream_writers/numpy_stream_writer.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/writers/stream_writers/stream_writer_base.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/writers/stream_writers/torch_stream_writer.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/tests/benchmarks/conftest.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/tests/benchmarks/test_benchmark_pipeline.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/tests/benchmarks/test_benchmark_png_encoding.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/tests/benchmarks/test_benchmark_tile_planning.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/tests/integration/conftest.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/tests/integration/test_materialize_pipeline.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/tests/integration/test_resample_pipeline.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/tests/integration/test_roi_pipeline.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/tests/integration/test_streaming_pipeline.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/tests/unit/src/wsi_patching/.gitkeep +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/tests/unit/src/wsi_patching/annotations/test_add_cell_annotation_from_csv.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/tests/unit/src/wsi_patching/backends/test_cupy_numpy.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/tests/unit/src/wsi_patching/backends/test_fastslide.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/tests/unit/src/wsi_patching/backends/test_torch_device.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/tests/unit/src/wsi_patching/core/test_chunking_and_batching.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/tests/unit/src/wsi_patching/core/test_pipeline.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/tests/unit/src/wsi_patching/core/test_wsi_grid.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/tests/unit/src/wsi_patching/filtering/test_cellvit_tissue_classifier_filter.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/tests/unit/src/wsi_patching/filtering/test_low_contrast_background_filter.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/tests/unit/src/wsi_patching/filtering/test_otsu_filter.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/tests/unit/src/wsi_patching/filtering/test_pen_artifact_filter.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/tests/unit/src/wsi_patching/regions_of_interest/test_attach_rois.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/tests/unit/src/wsi_patching/regions_of_interest/test_roi_providers.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/tests/unit/src/wsi_patching/regions_of_interest/test_rois.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/tests/unit/src/wsi_patching/transforms/test_macenko_normalizer.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/tests/unit/src/wsi_patching/transforms/test_reinhard_normalizer.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/tests/unit/src/wsi_patching/utils/test_logging_config.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/tests/unit/src/wsi_patching/utils/test_meta_typing.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/tests/unit/src/wsi_patching/utils/test_profiling.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/tests/unit/src/wsi_patching/writers/materialize_writers/test_materialize_writer_base.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/tests/unit/src/wsi_patching/writers/materialize_writers/webdataset/test_webdataset_loader.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/tests/unit/src/wsi_patching/writers/materialize_writers/webdataset/test_webdataset_writer.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/tests/unit/src/wsi_patching/writers/stream_writers/test_numpy_stream_writer.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/tests/unit/src/wsi_patching/writers/stream_writers/test_stream_writer_base.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/tests/unit/src/wsi_patching/writers/stream_writers/test_torch_stream_writer.py +0 -0
- {wsi_patching-0.5.0 → wsi_patching-0.5.1}/uv.lock +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: wsi-patching
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.1
|
|
4
4
|
Summary: A High Performance Patching Library for Digital Pathology AI dataset creation.
|
|
5
5
|
Project-URL: Homepage, https://github.com/amspath/wsi-patching-pipeline
|
|
6
6
|
Project-URL: Repository, https://github.com/amspath/wsi-patching-pipeline
|
|
@@ -79,23 +79,23 @@ A pragmatic pipeline for streaming whole-slide image (WSI) patches with region p
|
|
|
79
79
|
Python ≥3.10 <3.14 is recommended. 3.14 is yet unsupported.
|
|
80
80
|
```
|
|
81
81
|
# CPU install
|
|
82
|
-
pip install
|
|
82
|
+
pip install wsi-patching
|
|
83
83
|
|
|
84
84
|
# GPU install
|
|
85
|
-
pip install
|
|
85
|
+
pip install wsi-patching[gpu]
|
|
86
86
|
```
|
|
87
87
|
> For some stages, GPUs are required, and thus the GPU install is required.
|
|
88
88
|
|
|
89
89
|
|
|
90
90
|
## 2) Checkout the examples
|
|
91
|
-
`
|
|
91
|
+
`torch_stream_writer_demo.py` shows you how to build a basic pipeline for patching up a wsi in memory, without the need of writing to disk (RAM heavy for larger datasets, obviously).
|
|
92
92
|
```python
|
|
93
93
|
p = (
|
|
94
|
-
WSIGrid(slides=slides, resolution=
|
|
95
|
-
.then(PatchExtractor(tile_size=256, stride=256
|
|
96
|
-
.then(
|
|
94
|
+
WSIGrid(slides=slides, resolution=2, unit="level", use_gpu=True)
|
|
95
|
+
.then(PatchExtractor(tile_size=256, stride=256))
|
|
96
|
+
.then(PenArtifactFilter())
|
|
97
97
|
.then(ReinhardNormalizer())
|
|
98
|
-
.to(
|
|
98
|
+
.to(TorchStreamWriter(layout="NCHW"))
|
|
99
99
|
)
|
|
100
100
|
stream = p.stream(num_workers=4)
|
|
101
101
|
for wsi_id, final_images, final_coords, meta in stream:
|
|
@@ -17,23 +17,23 @@ A pragmatic pipeline for streaming whole-slide image (WSI) patches with region p
|
|
|
17
17
|
Python ≥3.10 <3.14 is recommended. 3.14 is yet unsupported.
|
|
18
18
|
```
|
|
19
19
|
# CPU install
|
|
20
|
-
pip install
|
|
20
|
+
pip install wsi-patching
|
|
21
21
|
|
|
22
22
|
# GPU install
|
|
23
|
-
pip install
|
|
23
|
+
pip install wsi-patching[gpu]
|
|
24
24
|
```
|
|
25
25
|
> For some stages, GPUs are required, and thus the GPU install is required.
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
## 2) Checkout the examples
|
|
29
|
-
`
|
|
29
|
+
`torch_stream_writer_demo.py` shows you how to build a basic pipeline for patching up a wsi in memory, without the need of writing to disk (RAM heavy for larger datasets, obviously).
|
|
30
30
|
```python
|
|
31
31
|
p = (
|
|
32
|
-
WSIGrid(slides=slides, resolution=
|
|
33
|
-
.then(PatchExtractor(tile_size=256, stride=256
|
|
34
|
-
.then(
|
|
32
|
+
WSIGrid(slides=slides, resolution=2, unit="level", use_gpu=True)
|
|
33
|
+
.then(PatchExtractor(tile_size=256, stride=256))
|
|
34
|
+
.then(PenArtifactFilter())
|
|
35
35
|
.then(ReinhardNormalizer())
|
|
36
|
-
.to(
|
|
36
|
+
.to(TorchStreamWriter(layout="NCHW"))
|
|
37
37
|
)
|
|
38
38
|
stream = p.stream(num_workers=4)
|
|
39
39
|
for wsi_id, final_images, final_coords, meta in stream:
|
|
@@ -5,13 +5,13 @@ Python **≥ 3.10, < 3.14** is required. Python 3.14 is not yet supported.
|
|
|
5
5
|
## CPU
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
pip install
|
|
8
|
+
pip install wsi-patching
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## GPU
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
pip install
|
|
14
|
+
pip install wsi-patching[gpu]
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
The `[gpu]` extra adds `torch`, `torchvision`, and `cupy-cuda12x` (Linux only). The following components require it:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/assets/models/cellvit_tissue_detector.pt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/regions_of_interest/attach_rois.py
RENAMED
|
File without changes
|
{wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/regions_of_interest/roi_providers.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/transforms/reinhard_normalizer.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/utils/wsi_thumbnail_visualization.py
RENAMED
|
File without changes
|
|
File without changes
|
{wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/writers/materialize_writers/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{wsi_patching-0.5.0 → wsi_patching-0.5.1}/src/wsi_patching/writers/stream_writers/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{wsi_patching-0.5.0 → wsi_patching-0.5.1}/tests/unit/src/wsi_patching/backends/test_cupy_numpy.py
RENAMED
|
File without changes
|
{wsi_patching-0.5.0 → wsi_patching-0.5.1}/tests/unit/src/wsi_patching/backends/test_fastslide.py
RENAMED
|
File without changes
|
{wsi_patching-0.5.0 → wsi_patching-0.5.1}/tests/unit/src/wsi_patching/backends/test_torch_device.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{wsi_patching-0.5.0 → wsi_patching-0.5.1}/tests/unit/src/wsi_patching/filtering/test_otsu_filter.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{wsi_patching-0.5.0 → wsi_patching-0.5.1}/tests/unit/src/wsi_patching/utils/test_logging_config.py
RENAMED
|
File without changes
|
{wsi_patching-0.5.0 → wsi_patching-0.5.1}/tests/unit/src/wsi_patching/utils/test_meta_typing.py
RENAMED
|
File without changes
|
{wsi_patching-0.5.0 → wsi_patching-0.5.1}/tests/unit/src/wsi_patching/utils/test_profiling.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|