Skip to content
/ qlty Public
forked from phzwart/qlty

A utility to patch pytorch tensors into smaller, overlapping bits and stitch them together again.

License

Notifications You must be signed in to change notification settings

Giselleu/qlty

 
 

Repository files navigation

qlty

qlty is a Python library designed to handle large 2D or 3D tensors efficiently by splitting them into smaller, manageable chunks. This library is particularly useful for processing large datasets that do not fit into memory. It includes methods for stitching the smaller chunks back together and computing the mean and standard deviation of the reconstructed data.

Modules and Features

  • qlty2D : in-memory functionality, requires things to fit into CPU memory.

  • qlty2DLarge: Similar functionality as qlty2D, but uses on-disc caching. If you ever think you want to graduate to the 3D case, this is what to use.

  • qlty3Dlarge: Use this for 3D datasets, has on-disc caching of intermediate results.

Tasks:

  • unstich: Split large tensors into smaller chunks for efficient processing.
  • stitch: Reassemble the smaller chunks into the original tensor, with potentially overlaps taken into account
  • Border Handling: Manage border pixels to minimize artifacts during stitching and training in segmentation.

Installation

To install the required dependencies, you can use pip:

pip install qlty torch zarr numpy einops dask

About

A utility to patch pytorch tensors into smaller, overlapping bits and stitch them together again.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 97.4%
  • Python 2.5%
  • Makefile 0.1%