Local structure
Four gated convolution blocks learn hierarchical features while reducing spatial resolution.
CNN encoderBRAIN Journal Interactive Companion
A CNN-ViT-GAN framework joins local feature extraction, global contextual reasoning, and adversarial texture refinement in one reconstruction pipeline.
Overview
Missing regions are reconstructed without sacrificing the known image. Gated convolutions encode local structure, a Vision Transformer models distant relationships, and a PatchGAN-like discriminator supplies local realism during training.
Four gated convolution blocks learn hierarchical features while reducing spatial resolution.
CNN encoderTwo Transformer layers with eight attention heads process 196 tokens at the bottleneck.
ViT · 256 dimensionsAdversarial and feature-matching objectives guide realistic local textures without replacing reconstruction loss.
PatchGAN-like discriminatorArchitecture Workbench
Select a stage to inspect its role, dimensions, and connection to the complete system.
Input assembly
Ablation Atlas
Compare every controlled configuration against the complete design. Higher PSNR and SSIM are better; lower LPIPS is better.
Complete system
| Configuration | PSNR ↑ | SSIM ↑ | LPIPS ↓ |
|---|
Qualitative Evidence
Inputs, masks, error maps, and outputs reveal texture and boundary behavior that aggregate scores can miss.
PSNR, SSIM, and LPIPS improve numerically, while reconstructed regions appear smoother and more conservative in texture synthesis.
PSNR falls to 34.3591, with weaker global structure and semantic coherence across distant regions.
LPIPS rises to 0.0352, the highest value among the tested configurations.
Objective Simulator
Enter component values to see how the fixed loss weights shape the generator objective, or convert mean squared error into PSNR for normalized images.
Adversarial multiplier α remains explicit.
Set values to compose the objective.
Save two parameter states and inspect the objective difference.
MAXI = 1 for normalized images.
Lower MSE produces higher PSNR.
Illustrative normalized range (0–1). The paper defines the weights, but does not report a universal “normal” raw loss value.
+ =Interpretive Boundary