Clean up green or purple color fringing on video footage before final export.
Visually tune fringe removal settings on a clip using color wheel controls and live overlays.
Export a tuned fringe removal model as ONNX to run efficiently over a full video.
Run the exported model against a whole video on a GPU using the included Colab notebook.
| nicholascelestin/defringe | 1038lab/agnes-ai | 3eyedtiger/video2vrcemote | |
|---|---|---|---|
| Stars | 4 | 4 | 4 |
| Language | Python | Python | Python |
| Setup difficulty | moderate | easy | easy |
| Complexity | 3/5 | 2/5 | 1/5 |
| Audience | developer | vibe coder | vibe coder |
Figures from each repo's GitHub metadata at analysis time.
Requires the uv Python tool and ffmpeg installed before the tuning app will run.
Defringe is a tool for removing green and purple color fringing from videos, the faint colored halos that sometimes appear around high contrast edges in footage. It works only on the color channels, leaving the underlying brightness and detail of the image untouched. The approach treats fringe like a shadow cast by a light source. The tool first finds the casters, the bright or saturated spots responsible for the fringe, then locates the nearby colored halo those spots produce, and finally pulls that stray color back toward the clean, natural tone around it. Green fringe tends to come from warm, saturated sources like red or purple areas, while purple fringe comes from overly bright, blown out highlights. Because purple fringe can itself cause green fringe nearby, the tool is designed to remove green fringe first, then purple, so nothing gets left behind without its source. There are two versions of the core algorithm that are kept in sync with each other and tested against one another: one written in plain numpy, and a second built with PyTorch so it can be exported as an ONNX model and run efficiently elsewhere, including on a GPU through a provided Colab notebook. The included app is a five tab visual tool built with Gradio. You load a video clip, then tune the green and purple correction passes using color wheel controls while overlays show exactly what the algorithm is detecting and correcting. A temporal tab lets you scrub through corrected frames and check for flicker over time. The final tab bakes your tuned settings into a portable ONNX model you can then run across an entire video. To try it, you need the uv Python tool and ffmpeg installed. Once those are in place, a single command downloads a compatible Python version and all the dependencies, then launches the tuning app in your browser.
A video tool that removes green and purple color fringing around high contrast edges by treating it like a shadow cast from nearby bright or saturated areas.
Mainly Python. The stack also includes Python, NumPy, PyTorch.
No license information is included in the README, so terms of use are unclear.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Don't trust strangers blindly. Verify against the repo.