Skip to content

ttolerantss/SuperRes-Fix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SuperRes-Fix

Before and after: a car with a blue/orange color cast on the left, corrected to its true colors on the right

Fixes images captured with NVIDIA Super Resolution, which saves photos with their red and blue channels swapped (BGR instead of RGB). The result is a blue/orange color cast. This tool swaps the channels back so the images are correct for editing and use.

Point it at a folder of images, run it, and it writes corrected copies into a Fixed Super Resolution subfolder. Your originals are left untouched.

It processes .jpg, .jpeg, and .png files whose name contains Super-Resolution (case-insensitive). Re-running is safe — it overwrites previous output and never touches your source files.

Run from source

Requires Python 3.10+.

pip install -r requirements.txt
python main.py

Run it from the folder you want to process. Corrected images appear in a new Fixed Super Resolution subfolder.

Build a standalone exe

To get a single .exe you can drop into any folder and double-click:

pip install -r requirements.txt
pyinstaller --onefile --name fix_super_resolution main.py

The executable lands at dist/fix_super_resolution.exe.

Tests

python test_channel_swap.py

License

MIT

About

A fix for NVIDIA Super Resolution, which saves photos in BGR with red/blue channels swapped (a blue/orange cast). Batch-converts them back to RGB so they are correct for editing and use.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages