Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
NightMachinery opened this issue May 10, 2024 · 4 comments
Open

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

NightMachinery opened this issue May 10, 2024 · 4 comments

Comments

@NightMachinery
Copy link

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
Copy link
Contributor

Tama47 commented May 13, 2024

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

Otherwise just use waifu2x for image.

@NightMachinery
Copy link
Author

@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
Copy link
Contributor

Tama47 commented May 13, 2024

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants