Skip to main content

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

Documentation

In the works!

License

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

Project details


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.0a0.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.0a0-py3-none-any.whl (45.8 kB view details)

Uploaded Python 3

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

Hashes for viscy_transforms-0.1.0a0.tar.gz
Algorithm Hash digest
SHA256 a108615da94779d90fc064c59ac2db384c580ec12cb4fc41db35e279dbd4e394
MD5 9ae0f8710151b9cd46362dc23ee621be
BLAKE2b-256 70b6bb5ab5a9cbe7cd17c21f60dda96b5c928cc6ebf00bcf227cf790ae43582f

See more details on using hashes here.

Provenance

The following attestation bundles were made for viscy_transforms-0.1.0a0.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.0a0-py3-none-any.whl.

File metadata

File hashes

Hashes for viscy_transforms-0.1.0a0-py3-none-any.whl
Algorithm Hash digest
SHA256 b1dc416f854c7656ba237aa669e16e539aa2a879377e82f8e230943cc812403b
MD5 6da0aa80f538c3a20ebbece8c4571a7c
BLAKE2b-256 72f40da1fda1ffc1c8cac9ea3d5a69056afa41bd703c0e4bf430f6d3af34a8c8

See more details on using hashes here.

Provenance

The following attestation bundles were made for viscy_transforms-0.1.0a0-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 Pingdom Monitoring Sentry Error logging StatusPage Status page