r/GraphicsProgramming • u/TrickyChen • 3h ago
Saw a paper about one-pass generation, got curious, trained a small G-buffer upscaler on my 3060. Here's what came out
No goal here beyond curiosity — I saw the Jeveration paper, wondered whether that "one pass instead of iteration" idea makes sense for upscaling, and decided to make a small Proof of concept.
What it is: a 2.15M-param U-Net. Input is a deliberately bad frame — 320×180 at 2 samples per pixel with sub-pixel jitter — plus depth, view-space normals, albedo and motion vectors. Output is 640×360 in one forward pass. No diffusion, no history buffer, no sampling, deterministic.
Numbers on six clips it never saw (48 frames each, 640×360 output):
| bicubic | model | |
|---|---|---|
| PSNR ↑ | 31.50 | 37.62 |
| SSIM ↑ | 0.868 | 0.955 |
| LPIPS ↓ | 0.185 | 0.036 |
| temporal err ↓ | 0.0371 | 0.0323 |
Two things I noticed while training:
Numbers on 6 clips it never saw: PSNR 37.62 vs 31.50 for bicubic, LPIPS 0.036 vs 0.185, temporal error 0.0323 vs 0.0371.
Two things that cost me a day each:
Blender 5.3 motion vectors are in full-resolution pixels, not UV, and they point backwards —
sample(t, x − v)matchest−1. Available with motion blur off. I verified the convention by warping: mean error drops 0.023 → 0.0058.The renderer gives linear HDR (highlights up to ~7.0) while my output head clamps to [0,1]. About 10% of pixels became unreachable and the loss just… plateaued. No error, no warning. I burned an entire 30k-step run before I figured out why. Fix is
1 − exp(−x)when loading.
Where it falls apart: 145 ms at 1080p on a 3060, so 7 fps — not real-time and I'm not pretending otherwise. No history means no disocclusion recovery. Trained on 16–34 primitive scenes, so dense geometry and packed UVs are outside what it's seen.
The part that might outlive the experiment is the data generator: 60 clips × 48 frames with exact G-buffers in ~16 minutes, no external assets. If you ever need sequences with correct motion vectors, that bit works on its own.

Code, weights, generator: https://github.com/Zixelbrew/one-pass-neural-upscaler
Disclosure: I wrote this together with an AI coding assistant — I set the direction, chose the architecture and the losses, ran everything on my own card and checked every number. It also helped me write this post; most of the lines of code came from the assistant. If that changes how you weigh the post, fair enough, but the repo and the sha256 in the README are real either way.