Anime4K icon indicating copy to clipboard operation
Anime4K copied to clipboard

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

Open NightMachinery opened this issue 9 months ago • 4 comments

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?

NightMachinery avatar May 10 '24 18:05 NightMachinery

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

Otherwise just use waifu2x for image.

Tama47 avatar May 13 '24 07:05 Tama47

@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.

NightMachinery avatar May 13 '24 10:05 NightMachinery

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.

Tama47 avatar May 13 '24 11:05 Tama47

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

Arc-2023 avatar May 14 '24 13:05 Arc-2023