Skip to main content

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.1
  • kornia
  • monai>=1.4
  • numpy

Documentation

In the works!

License

BSD-3-Clause - see LICENSE in repository root.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

viscy_transforms-0.1.0.tar.gz (6.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

viscy_transforms-0.1.0-py3-none-any.whl (45.8 kB view details)

Uploaded Python 3

File details

Details for the file viscy_transforms-0.1.0.tar.gz.

File metadata

  • Download URL: viscy_transforms-0.1.0.tar.gz
  • Upload date:
  • Size: 6.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for viscy_transforms-0.1.0.tar.gz
Algorithm Hash digest
SHA256 eba7ea12edc155d3724009656d4670ce928429c5d87acce30a8b57987dbd5dc3
MD5 cf209007d3fb1fadebedb82261fc9512
BLAKE2b-256 86d32904b87395e4171cb994dacf5f020260aaef5760741c741a729e9b69dddf

See more details on using hashes here.

Provenance

The following attestation bundles were made for viscy_transforms-0.1.0.tar.gz:

Publisher: release.yml on mehta-lab/VisCy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file viscy_transforms-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for viscy_transforms-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1716fb9dfb99cb51c8c26c698902138810b0f7d62bfc878149026e6888192870
MD5 a76100f094743826513c3358c6c6ee64
BLAKE2b-256 5eb2f29a4cd2879dd4428a4c1b3e2f9f8529bbbd9eeb5093ee8b6c7f1d050974

See more details on using hashes here.

Provenance

The following attestation bundles were made for viscy_transforms-0.1.0-py3-none-any.whl:

Publisher: release.yml on mehta-lab/VisCy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page