r/GraphicsProgramming • u/TrickyChen • 16h 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.
https://reddit.com/link/1ycpr2o/video/wjjsf2xt0k5i1/player
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.
•
u/AutoModerator 16h ago
Recently updated rules. Please check that your post is in compliance with Rules 1, 4, 5, and 6 on the sidebar. TL;DR:
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
15
u/S48GS 16h ago
compress your model - it is first basic optimization in NN
I assume you run 32-bit values - no reason - collapse to 8-bit range numbers - multiple times performance gain
no need retrain - you can compress just numbers of exist model
12
u/sebamestre 12h ago
Pls write your own post. Ai written text sucks and it feels awful to read.
It is not written for anybody that hasn't heard of your project to read. It's missing key facts.
It doesn't communicate what you found cool or interesting about it. It goes into detail about random stuff and does not really have a point.
Please if you are want to participate in an online community, just do so. What is the point if the ai is going to interact for you?
Idk your reasons to have ai write the text. If it's for example a low levels of English I recommend that you either write in your native language and then have ai translate it so there is some of your voice going through, or just write whatever rough English you can. People usually like posts that have something cool and show some excitement from the poster, even if the writing is basic.
If you think it makes you look better because it's all polished, it doesn't. It looks like all the slop that's saturating the internet lately
‐------
More specific points
"Input is a deliberately bad frame -- 320x180 at 2 samples per pixel" 2 samples of what? Why do you train on deliberately bad frames? What is the use case here? Better to train realistically bad frames, no?
"Numbers on six clips it never saw" why make this sound like it's cool? Obviously you're not a moron so you wouldn't show the loss on a sample that is part of the training set right?
"PSNR, SSIM, LPIPS, temporal err" What are these metrics? Is lower better in all of them?
"Two things that cost me a day" who the fuck cares? Who cares that blenders motion is backwards? Who cares that your specific scenes ended up with "highlights up to ~7"? It depends on the particular scene. And what does it even mean? Is 7 somehow significant? Do we know in what units it is? Glad that you learned about tonemapping tho
"Not real time and I'm not pretending otherwise" bruhhhh who said anything about pretending?
And really? Do you think that the data generator might outlive the experiment? What makes you think that? You said nothing wrt what's good about it, besides that it does the thing it says it does.