← Home ← Back to /g/

Thread 106641214

25 posts 34 images /g/
kiker !!m8ZMOnWSI0a No.106641214 >>106645677
WEBP2
Kinda lost interest in continuing this since it turns out upscaling DVD anime to 720p is actually really really hard. The resolution is so low that most AI models can barely do better than bicubic but I did eventually find one that's okay-ish.

https://openmodeldb.info/models/2x-DigitoonLite

For those who haven't heard, it's possible to fraudulently create a VP9 WEBM that contains a yuv420p "image" and force your GPU to decode it instead of your CPU which is pretty much what would have been WEBP2. This may or may not benefit you but IMHO it's amusing that it's possible at all. It's not a good image format for real life images but it does seem especially good for anime upscales. 4chan doesn't allow modern image formats so if you want better image compression efficiency this is as good as it gets lol. Anyway here's a windows batch script that not only asks you to strictly define the quantizer ceilings (ie lower number better) in one go but if you're not satisfied it loops again so you can use a different value if you wish. In a proper WEBP2 implementation the 0-63 range would be inverted and mapped to 0-100 with 100 = 0 but the whole thing was abandoned so this is what we have left to work with now.

@echo off
:loop
echo:
set /p crf="CRF (0-63): "
mkdir temp
for %%f in (*.png) do (
ffmpeg -hide_banner -framerate 1 -stream_loop 1 -i "%%f" -pix_fmt yuv420p -color_range full -y temp/temp.y4m

ffmpeg -hide_banner -color_range full -colorspace bt470bg -color_primaries unknown -color_trc unknown ^
-i temp/temp.y4m -c:v libvpx-vp9 -quality best -cpu-used -1 -crf %crf% -b:v 0 -qmin %crf% -qmax %crf% -y "%%~nf.webm"
)
set /p retry="Test again? YES or NO?: "
if /i "%retry%"=="YES" goto loop
if /i "%retry%"=="yes" goto loop
if /i "%retry%"=="Yes" goto loop

I'll include a PNG version if you want to use this to test image codecs and they'll serve as a nice backup in case I find a model better than digiTROON lite.

https://files.catbox.moe/t309wn.png
kiker !!m8ZMOnWSI0a No.106641467 >>106641665 >>106643512 >>106643577 >>106643614
Dam, did sharty come back for revenge? Is it really OGRE now? Anyway I forgot it's 2 PNG backups I need, the original and the upscale. OP image was just a test but from now on these will include both.

480p native: https://files.catbox.moe/9kbxa4.png

720p upscale: https://files.catbox.moe/vujc8j.png
Anonymous No.106641665 >>106641770 >>106646173
>>106641467
the color is wrong on the upscale.

I only do manga upscaling so I don't what models are good for anime, does animejanai not work well on dvd? if you join the openmodeldb discord they post a bunch of experimental models that don't make it to the main website. I think I've seen models targeted at dvd anime there.
>inb4 discord
kiker !!m8ZMOnWSI0a No.106641770 >>106643520 >>106643594 >>106643621
>>106641665
It seems to be a side effect of the mpeg2 artifact suppression but after spending like a week searching cugan/realesr/etc models everywhere I'm gonna stick with this one for now. Models like animejanai just don't "feel right" to me. Digitoon lite seems to have hit some kind of sweetspot for me. Having to do color grading sucks and I'll probably never want to do it. Topaz could probably get me better results but I don't have the money or the guts to pirate it since it probably phones home a lot.

480p native: https://files.catbox.moe/sfk7bk.png

720p upscale: https://files.catbox.moe/8m8wty.png

BTW I'm using a quantizer value of 20 for anyone wondering. I can't really notice any improvements below this value desu.
Anonymous No.106643512 >>106643526 >>106644213
>>106641467
Anonymous No.106643520 >>106643531
>>106641770
Anonymous No.106643526 >>106644213
>>106643512
Anonymous No.106643531
>>106643520
Anonymous No.106643541
I enjoy reading your posts, but I don't know why you continue tripfagging when you feel the need to switch tripcodes and names so often.
Anonymous No.106643577 >>106643584 >>106644213
>>106641467
Anonymous No.106643584 >>106644213
>>106643577
Anonymous No.106643594 >>106643602
>>106641770
Anonymous No.106643602
>>106643594
Anonymous No.106643614 >>106644213
>>106641467
Anonymous No.106643621
>>106641770
Anonymous No.106643672
If nothing else, I admire your persistance.
Anonymous No.106644213
>>106643512
>>106643526
>>106643577
>>106643584
>>106643614
These all look like slightly different versions made by different artists trying to imitate the original. Is upscaling anime really this inherently cursed? I thought it would have been solved by now...
Anonymous No.106645548
Why was webp2 scrapped anyway? It seems to be really competitive with jpeg xl.
Anonymous No.106645677 >>106647814
>>106641214 (OP)
why are people so interested in upscaling anime? i've only ever seen garbage results and larger files.
JonSneeders !q710i/bPrg No.106646173
>>106641665
Converting from a DVD source is messy. It not only uses different matrix coefficients, but different color primaries that vary across regions.
Anonymous No.106646197
>upscaling
Anonymous No.106647814 >>106648002 >>106649334 >>106650053
>>106645677
DVD video looks like a postage stamp on my 1440p computer monitor.
Anonymous No.106648002
>>106647814
just sit further away
Anonymous No.106649334
>>106647814
bicubic
Anonymous No.106650053
>>106647814
double click the video, it will expand to fill the screen