Skip to content

u/Dwedit

In this archive from Aug 2016 to Nov 2026

5
posts
252
comments
3
media
1.1k
score
16 saved before deletion

Waifu2x comes very close here. It's not exact, but there is very low difference (within 8) after you subtract the pixels.

My test was to take an image, upscale it, downscale it, then subtract against original.


Aside:

But it turns out that Waifu2x (and a whole lot of other image editing tools) completely screwed up on what the sRGB color space actually is. Half of 255,255,255 is not 128,128,128, because sRGB isn't a linear color space. It's actually 186,186,186. Compare that color against a black and white checkerboard dither on an sRGB display and it they will look the same brightness, while 128,128,128 will look darker.

This means that Waifu2x was trained on images that were downscaled using the wrong color space, so it will better well for those kinds of images, but will not work as well for images that were properly downscaled.

It also means that after you've upscaled the image, you need to use a bad downscaler, like old versions of image editing tools that treated sRGB as if it's a linear color space, and think that half of 255,255,255 is 128,128,128. Waifu2x will match well against images downscaled using that bad downscaling method, but will not match well against better downscalers.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.