bloc97 / Anime4K

A High-Quality Real Time Upscaler for Anime Video
https://bloc97.github.io/Anime4K/
MIT License
18.3k stars 1.35k forks source link

[Q] How do I apply Anime4k GLSL filters on images? #238

Open NightMachinery opened 4 months ago

NightMachinery commented 4 months ago

I want to upscale images (e.g., PNG files) using Anime4k GLSL shaders such as https://github.com/bloc97/Anime4K/blob/master/glsl/Upscale%2BDenoise/Anime4K_Upscale_Denoise_CNN_x2_L.glsl. Is this possible?

Tama47 commented 4 months ago

If you got a 4K display, just drag and drop image into mpv and take screenshot.

Otherwise just use waifu2x for image.

NightMachinery commented 4 months ago

@Tama47 I actually want to use this for slide images extracted from lecture videos, not anime. Anime4K filters make the slides look better on mpv, and I don't really know of another option. Do you still recommend waifu2x?

I also need the process to be automatable, so manual screenshotting is not good.

Tama47 commented 4 months ago

Do you still recommend waifu2x?

Yes, you can batch upscale all the images at once, just be sure to use the Anime4K models as other models can take considerably longer to upscale.

Arc-2023 commented 4 months ago

yes, you can use the new filter in ffmpeg called "libplacebo" to use glsl on video stream or just a single image. see at :https://stackoverflow.com/questions/76792577/how-to-use-ffmpeg-to-upscale-video-resolution-with-libplacebo/76793322#76793322