medtokenizers

Tokenization pipelines for volumetric medical imaging – continuous and discrete tokenizers (VAE/AE, VQ/FSQ/LFQ/ResidualFSQ, TiTok, RAE, MAISI) with supporting quantization modules, training, and evaluation infrastructure.

Ecosystem

medtokenizers is one of three packages that together form a toolkit for generative modeling of medical images:

  • medrs – fast medical-image I/O (NIfTI/DICOM) and preprocessing primitives.

  • medtokenizers – continuous and discrete tokenizers that compress 2D/3D scans into latents or token grids (this package).

  • medlatents – generative models (autoregressive, MaskGIT, diffusion, flow matching, Bayesian flow) that learn over those tokens.

Typical pipeline:

images -> medrs (load) -> medtokenizers (tokenize) -> medlatents (generate) -> medtokenizers (detokenize) -> images

Project Info

Indices and tables