Datasets:
Tasks:
Image-to-Image
Modalities:
Text
Formats:
text
Languages:
English
Size:
10K - 100K
ArXiv:
License:
Add arXiv:2604.12152 citation, full author list, and github.com/sebasmos/latent-sr link
Browse files
README.md
CHANGED
|
@@ -1,3 +1,94 @@
|
|
| 1 |
---
|
| 2 |
license: mit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
tags:
|
| 6 |
+
- medical-imaging
|
| 7 |
+
- super-resolution
|
| 8 |
+
- embeddings
|
| 9 |
+
- MRI
|
| 10 |
+
- chest-x-ray
|
| 11 |
+
- latent-diffusion
|
| 12 |
+
- VAE-embeddings
|
| 13 |
+
task_categories:
|
| 14 |
+
- image-to-image
|
| 15 |
---
|
| 16 |
+
|
| 17 |
+
# Latent-SR Embeddings: Precomputed VAE Latents for Medical Image Super-Resolution
|
| 18 |
+
|
| 19 |
+
Precomputed VAE latent embeddings from the paper:
|
| 20 |
+
|
| 21 |
+
> **"Domain-Specific Latent Representations Improve the Fidelity of Diffusion-Based Medical Image Super-Resolution"**
|
| 22 |
+
> Sebastian Cajas, Ashaba Judith, Rahul Gorijavolu, Sahil Kapadia, Hillary Clinton Kasimbazi, Leo Kinyera, Emmanuel Paul Kwesiga, Sri Sri Jaithra Varma Manthena, Luis Filipe Nakayama, Ninsiima Doreen, Leo Anthony Celi.
|
| 23 |
+
> arXiv:2604.12152 (2026) — under review at Nature Scientific Reports.
|
| 24 |
+
>
|
| 25 |
+
> 📄 Paper: https://arxiv.org/abs/2604.12152
|
| 26 |
+
> 💻 Code: https://github.com/sebasmos/latent-sr
|
| 27 |
+
|
| 28 |
+
## Dataset Description
|
| 29 |
+
|
| 30 |
+
Each directory contains precomputed encoder outputs (posterior mean, deterministic) for a given (VAE, dataset) pair. These are the latent inputs to the diffusion UNet — sharing them avoids re-encoding during training/evaluation.
|
| 31 |
+
|
| 32 |
+
Each `.npy` file is a single 2D latent of shape `(C, H, W)`, stored as float32.
|
| 33 |
+
|
| 34 |
+
## Directory Structure
|
| 35 |
+
|
| 36 |
+
```
|
| 37 |
+
<vae>_<dataset>/
|
| 38 |
+
├── train_latent/ # training split latents
|
| 39 |
+
├── valid_latent/ # validation split latents
|
| 40 |
+
└── test_latent/ # test split latents
|
| 41 |
+
```
|
| 42 |
+
|
| 43 |
+
## VAE × Dataset Index
|
| 44 |
+
|
| 45 |
+
| Directory | VAE | Latent shape | Dataset | Split sizes |
|
| 46 |
+
|-----------|-----|-------------|---------|-------------|
|
| 47 |
+
| `medvae-4-3_brats` | MedVAE (3×64×64) | (3,64,64) | BraTS 2023 brain MRI | train/val/test |
|
| 48 |
+
| `medvae-4-3_cxr` | MedVAE (3×64×64) | (3,64,64) | MIMIC-CXR chest X-ray | train/val/test |
|
| 49 |
+
| `medvae-4-3_mrnet` | MedVAE (3×64×64) | (3,64,64) | MRNet knee MRI | train/val/test |
|
| 50 |
+
| `sdvae_brats` | SD-VAE (4×32×32) | (4,32,32) | BraTS 2023 | train/val/test |
|
| 51 |
+
| `sdvae_cxr` | SD-VAE (4×32×32) | (4,32,32) | MIMIC-CXR | train/val/test |
|
| 52 |
+
| `sdvae_mrnet` | SD-VAE (4×32×32) | (4,32,32) | MRNet | train/val/test |
|
| 53 |
+
| `medvae-4-1_brats` | MedVAE 4_1 (1×64×64) | (1,64,64) | BraTS | train/val/test |
|
| 54 |
+
| `medvae-4-1_cxr` | MedVAE 4_1 (1×64×64) | (1,64,64) | MIMIC-CXR | train/val/test |
|
| 55 |
+
| `medvae-4-1_mrnet` | MedVAE 4_1 (1×64×64) | (1,64,64) | MRNet | train/val/test |
|
| 56 |
+
| `medvae-8-1_brats` | MedVAE 8_1 (1×32×32) | (1,32,32) | BraTS | train/val/test |
|
| 57 |
+
| `medvae-8-1_cxr` | MedVAE 8_1 (1×32×32) | (1,32,32) | MIMIC-CXR | train/val/test |
|
| 58 |
+
| `medvae-8-1_mrnet` | MedVAE 8_1 (1×32×32) | (1,32,32) | MRNet | train/val/test |
|
| 59 |
+
| `medvae-8-4_brats` | MedVAE 8_4 (4×32×32) | (4,32,32) | BraTS | train/val/test |
|
| 60 |
+
| `medvae-8-4_cxr` | MedVAE 8_4 (4×32×32) | (4,32,32) | MIMIC-CXR | train/val/test |
|
| 61 |
+
| `medvae-8-4_mrnet` | MedVAE 8_4 (4×32×32) | (4,32,32) | MRNet | train/val/test |
|
| 62 |
+
| `medvae-4-4_brats` | MedVAE 4_4 (4×64×64) | (4,64,64) | BraTS | train/val/test |
|
| 63 |
+
| `medvae-4-4_cxr` | MedVAE 4_4 (4×64×64) | (4,64,64) | MIMIC-CXR | train/val/test |
|
| 64 |
+
| `medvae-4-4_mrnet` | MedVAE 4_4 (4×64×64) | (4,64,64) | MRNet | train/val/test |
|
| 65 |
+
|
| 66 |
+
## Usage
|
| 67 |
+
|
| 68 |
+
```python
|
| 69 |
+
import numpy as np
|
| 70 |
+
from huggingface_hub import snapshot_download
|
| 71 |
+
|
| 72 |
+
# Download all embeddings for MedVAE on BraTS
|
| 73 |
+
local_dir = snapshot_download("sebasmos/latent-sr-embeddings")
|
| 74 |
+
latents = np.load(f"{local_dir}/medvae-4-3_brats/valid_latent/000001.npy")
|
| 75 |
+
print(latents.shape) # (3, 64, 64)
|
| 76 |
+
```
|
| 77 |
+
|
| 78 |
+
## Citation
|
| 79 |
+
|
| 80 |
+
```bibtex
|
| 81 |
+
@article{cajas2026domain,
|
| 82 |
+
title = {Domain-Specific Latent Representations Improve the Fidelity of Diffusion-Based Medical Image Super-Resolution},
|
| 83 |
+
author = {{Sebastian Cajas} and {Ashaba Judith} and {Rahul Gorijavolu} and {Sahil Kapadia} and {Hillary Clinton Kasimbazi} and {Leo Kinyera} and {Emmanuel Paul Kwesiga} and {Sri Sri Jaithra Varma Manthena} and {Luis Filipe Nakayama} and {Ninsiima Doreen} and {Leo Anthony Celi}},
|
| 84 |
+
journal = {arXiv preprint arXiv:2604.12152},
|
| 85 |
+
year = {2026},
|
| 86 |
+
url = {https://arxiv.org/abs/2604.12152}
|
| 87 |
+
}
|
| 88 |
+
```
|
| 89 |
+
|
| 90 |
+
Code: https://github.com/sebasmos/latent-sr · Paper: https://arxiv.org/abs/2604.12152
|
| 91 |
+
|
| 92 |
+
## License
|
| 93 |
+
|
| 94 |
+
MIT License.
|