A Deep Convolutional GAN (DCGAN) trained on brain MRI tumor scans to generate synthetic images and explore the learned latent space through LERP and SLERP interpolation.
Generation
Sample a random point from the 100-dimensional latent space and decode it through the trained generator to produce a synthetic MRI scan.
Click to generate your first synthetic scan.
Gallery
A batch of 18 synthetic scans sampled from across the latent space — generated freshly on page load.
Generate two distinct tumor scans, then interpolate through the latent space between them. The GAN decodes each intermediate point into a unique image — revealing how the model organises learned features.




Generate images A and B and click "interpolate" to explore the latent path.
Generate Image A and Image B first, then click Interpolate.
Understanding the methods
Moves directly between two latent vectors along a straight line in Euclidean space. Simple and fast, but the midpoint of a straight line in high-dimensional space often lands in a low-density region of the learned distribution.
z = (1−t)·zA + t·zBFollows the surface of the latent hypersphere, maintaining a constant magnitude at every step. This keeps intermediate points within the high-density region of the latent space, typically yielding smoother and more realistic transitions.
z = sin((1−t)Ω)/sin(Ω)·zA + sin(tΩ)/sin(Ω)·zBGeometric intuition — LERP cuts across; SLERP follows the arc of the hypersphere
Under the hood
A full-stack ML research demo built with modern tooling from model training through to the interactive frontend.