Torch-staintools

Latest version: v1.0.4

Safety actively analyzes 681844 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

1.0.4

(1) Fix an issue such that the augmentation may draw out-of-intended-boundary noise for concentration augmentation.

(2) Add optional least square solver (`torch.linalg.lstsq`) for concentration computation (`concentration_method='ls'`, besides the existing `'ista'` and `'cd'` options) when dealing with huge number of small image inputs (e.g., batches of `Nx3x256x256` input) on-the-fly. Note that while 'ls' is faster in such scenario, it does not have sparse constraints, and it may fail on GPU if the height/width of image is too large regardless of batch size, due to the limitation of `torch.linalg.lstsq`.

(3) Readme and demo update.

1.0.3

- optional tissue masking for reinhard (statistics computation within tissue regions).
- unittest updates.

1.0.2

**Changelog**:
* Optional stain matrices caching for both `Normalizer` and `Augmentor`.
* Add unit testing.
* Add documentation.

**Installation from PyPI**:

pip install torch-staintools

0.0.4

**What's new**
- add stain augmentation (macenko/vahadane)
- add the support of stain matrix caching to avoid recomputation (currently in augmentors only). Cached can be dumped/loaded to/from local file system for future reuses.

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.