Image transforms for virtual staining microscopy
Project description
viscy-transforms
Image transforms for virtual staining microscopy.
Part of the VisCy project.
Installation
From PyPI (when published)
pip install viscy-transforms
For development (from monorepo root)
# Using uv (recommended)
uv pip install -e packages/viscy-transforms
# Or via workspace sync
uv sync --package viscy-transforms
Usage
from viscy_transforms import NormalizeSampled, BatchedRandAffined
# Transforms follow MONAI dictionary transform pattern
# See documentation for full API reference
Features
- PyTorch-based image transforms optimized for microscopy data
- MONAI Dictionary transform compatibility for DataLoader pipelines
- Kornia-accelerated augmentations (affine, noise, blur)
- Specialized transforms for virtual staining workflows
Examples
To run the example notebook, install with the notebook extra:
pip install viscy-transforms[notebook]
See the batched transforms benchmark notebook for a comparison of batched GPU transforms vs standard MONAI transforms.
Dependencies
torch>=2.4.1korniamonai>=1.4numpy
Documentation
In the works!
License
BSD-3-Clause - see LICENSE in repository root.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file viscy_transforms-0.1.0a0.tar.gz.
File metadata
- Download URL: viscy_transforms-0.1.0a0.tar.gz
- Upload date:
- Size: 6.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a108615da94779d90fc064c59ac2db384c580ec12cb4fc41db35e279dbd4e394
|
|
| MD5 |
9ae0f8710151b9cd46362dc23ee621be
|
|
| BLAKE2b-256 |
70b6bb5ab5a9cbe7cd17c21f60dda96b5c928cc6ebf00bcf227cf790ae43582f
|
Provenance
The following attestation bundles were made for viscy_transforms-0.1.0a0.tar.gz:
Publisher:
release.yml on mehta-lab/VisCy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
viscy_transforms-0.1.0a0.tar.gz -
Subject digest:
a108615da94779d90fc064c59ac2db384c580ec12cb4fc41db35e279dbd4e394 - Sigstore transparency entry: 2023447161
- Sigstore integration time:
-
Permalink:
mehta-lab/VisCy@4b62365c0df25929bffc7f01b3bb2d1c11d69cce -
Branch / Tag:
refs/tags/viscy-transforms-v0.1.0a0 - Owner: https://github.com/mehta-lab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@4b62365c0df25929bffc7f01b3bb2d1c11d69cce -
Trigger Event:
release
-
Statement type:
File details
Details for the file viscy_transforms-0.1.0a0-py3-none-any.whl.
File metadata
- Download URL: viscy_transforms-0.1.0a0-py3-none-any.whl
- Upload date:
- Size: 45.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1dc416f854c7656ba237aa669e16e539aa2a879377e82f8e230943cc812403b
|
|
| MD5 |
6da0aa80f538c3a20ebbece8c4571a7c
|
|
| BLAKE2b-256 |
72f40da1fda1ffc1c8cac9ea3d5a69056afa41bd703c0e4bf430f6d3af34a8c8
|
Provenance
The following attestation bundles were made for viscy_transforms-0.1.0a0-py3-none-any.whl:
Publisher:
release.yml on mehta-lab/VisCy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
viscy_transforms-0.1.0a0-py3-none-any.whl -
Subject digest:
b1dc416f854c7656ba237aa669e16e539aa2a879377e82f8e230943cc812403b - Sigstore transparency entry: 2023447368
- Sigstore integration time:
-
Permalink:
mehta-lab/VisCy@4b62365c0df25929bffc7f01b3bb2d1c11d69cce -
Branch / Tag:
refs/tags/viscy-transforms-v0.1.0a0 - Owner: https://github.com/mehta-lab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@4b62365c0df25929bffc7f01b3bb2d1c11d69cce -
Trigger Event:
release
-
Statement type: