HeleenaRobert/super-resolution-showcase
π Comparing AI super-resolution models with visual examples and runtime analysis for image upscaling and restoration.
π Super-Resolution Showcase
A visual benchmark of four deep learning models for Single Image Super-Resolution (SISR) using OpenCV's DNN module. This project compares model quality, runtime, and scale factors in a clear, reproducible format.
π Overview
This project demonstrates the effectiveness of:
- EDSR
- ESPCN
- FSRCNN
- LapSRN
Each model is tested at 4Γ upscaling. Output comparisons help you evaluate both visual clarity and performance runtime.
π‘ While all scale models (
x2,x3,x4) are included in themodels/folder for reference, the demo scripts use onlyx4models for consistency.
πΈ LapSRN does not supportx3, but includes a uniquex8model.
π Key Features
- π§ Easy-to-use demos for all 4 models
- π Runtime comparison for each model
- πΌοΈ Side-by-side visual quality output
- ποΈ Modular, reusable utils structure
π§ How It Works
- Load the super-resolution model using OpenCVβs DNN module
- Upscale a given low-resolution input
- Compare results visually and numerically
- Save all outputs in the
assets/folder
π Folder Structure
super-resolution-showcase/
β
βββ assets/ # Output, runtime and quality samples, banner
β βββ quality_comparison.png
β βββ runtime_chart.png
β βββ model_output.png
β βββ banner.png
β
βββ input/ # Low-res input images
β βββ bike-200.png
β βββ car.jpg
β βββ car-low.jpg
β βββ kitten-200.png
β βββ path-low.jpg
β
βββ output/ # All program output images are saved here
β
βββ ground_truth/ # High-res originals for quality reference
β βββ bike-800.png
β βββ car-high.jpg
β βββ path-high.jpg
β
βββ models/ # Pre-trained model files (.pb)
β βββ edsr/
β β βββ EDSR_x2.pb
β β βββ EDSR_x3.pb
β β βββ EDSR_x4.pb
β β
β βββ espcn/
β β βββ ESPCN_x2.pb
β β βββ ESPCN_x3.pb
β β βββ ESPCN_x4.pb
β β
β βββ fsrcnn/
β β βββ FSRCNN_x2.pb
β β βββ FSRCNN_x3.pb
β β βββ FSRCNN_x4.pb
β β
β βββ lapsrn/
β βββ LapSRN_x2.pb
β βββ LapSRN_x4.pb
β βββ LapSRN_x8.pb
β
βββ utils/
β βββ visualizer.py
β βββ superres_utils.py # Core model loader and inference logic
β
βββ demo_all_models.py # Run all models on sample inputs
βββ compare_runtime.py # Time performance of each model
βββ compare_quality.py # Save visual outputs for comparison
β
βββ requirements.txt
βββ .gitignore
βββ LICENSE
βββ README.mdπ§ͺ Demo Scripts
Run all models:
python demo_all_models.pyCompare runtime:
python compare_runtime.pyCompare visual outputs:
python compare_quality.pyπ All outputs are saved inside the output/ folder.
πΌοΈ Sample Output Gallery
β‘ Super resolution model output
π Runtime comparison
πΌοΈ visual analysis
π¦ Requirements
Install required libraries:
pip install -r requirements.txtπͺͺ License
This project is open-source under the MIT License
πββοΈ Author
Heleena Robert
GitHub



