v0.1 vs v0.2 vs v0.3 Wavelet 1:1 Crops

The 3-Generation Progression (NVIDIA L4 · 1024×1024)

Variant Architecture Latency Peak VRAM Portrait PSNR LPIPS ↓
v0.1 8px ConvNeXt + Pixel MSE 7.77 ms 340 MiB 37.4 dB 0.1524
v0.2 1px Full-Res GroupNorm + LPIPS 115.05 ms 904 MiB 38.4 dB 0.0891
v0.3 2px Haar Wavelet + LL-Detached GAN 37.51 ms 504 MiB 39.17 dB 0.0736

Three Engineering Takeaways

  1. Terminate Neural Layers at Half Resolution (H/2 × W/2): Full-res 1024² GroupNorm is strictly memory-bandwidth bound (115 ms). Predicting 2D Haar sub-bands (LL, LH, HL, HH) at 512² followed by parameter-free analytic iDWT cuts latency 3.07× and saves 44.2% activation VRAM:

I^1024=iDWTHaar(LL512,  LH512,  HL512,  HH512)\hat{I}_{1024} = \mathrm{iDWT}_{\text{Haar}}\big(LL_{512},\; LH_{512},\; HL_{512},\; HH_{512}\big)

  1. Bridge Token Seams with 3×3 LatentSpatialHighway: Pure 1×1 token projections break diagonal text across 16×16 patch seams; injecting 3×3 latent convolutions into 8px / 4px / 2px layers raises micro-text PSNR to 36.2 dB.
  2. Lock Low Frequencies in Wavelet PatchGAN: Detaching LL isolates adversarial gradients to high-frequency edges, eliminating GAN color drift:
d_input = torch.cat([pred_LL.detach(), pred_LH, pred_HL, pred_HH], dim=1)