How bloc97/anime4k works
Anime4K is a collection of real-time GLSL anime image upscaling, denoising, restoration, and perceptual-effect shaders, intended for use with media players such as mpv and Plex. The main workflow is playback of video through selected shaders to produce an enhanced display image. The repository also includes TensorFlow shader-generation and image/model research utilities. Relationships among individual shader stages are not established by the excerpts, so they are shown as alternative shader families rather than an invented pipeline.
Main entry points: Upscale Upscaling shaders · Upscale+Denoise Upscale and denoise · Restore Restoration shaders · Denoise Denoising shaders
Components 14
Playback integration
- Media player
Upscaling
- Upscaling shaders
glsl/Upscale - Upscale and denoise
glsl/Upscale+Denoise
Image enhancement
- Restoration shaders
glsl/Restore - Denoising shaders
glsl/Denoise - Deblurring shaders
glsl/Deblur - Line effects
glsl/Experimental-Effects
Model research
- Model training
tensorflow/Train_Model.ipynb - Shader generation notebook
tensorflow/Gen_Shader.ipynb - Shader generation utilities
tensorflow/shaderutils.py - Image utilities
tensorflow/utils.py
Other components
- Viewer
- Enhanced image
- Generated shader
Connections 16
- Viewer → Media player: starts playback
README.md - Media player → Upscaling shaders: applies shader
README.md - Media player → Upscale and denoise: applies shader
README.md - Media player → Restoration shaders: applies shader
README.md - Media player → Denoising shaders: applies shader
README.md - Media player → Deblurring shaders: applies shader
README.md - Media player → Line effects: applies shader
README.md - Upscaling shaders → Enhanced image: produces image
README.md - Upscale and denoise → Enhanced image: produces image
README.md - Restoration shaders → Enhanced image: enhances image
README.md - Denoising shaders → Enhanced image: denoises image
README.md - Deblurring shaders → Enhanced image: deblurs image
README.md - Line effects → Enhanced image: adjusts lines
README.md - Model training → Shader generation notebook: may inform
- Shader generation notebook → Shader generation utilities: may use
- Shader generation utilities → Generated shader: generates GLSL
tensorflow/shaderutils.py