Skip to content

SamuelXJames/SRKernels

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SRKernels

Super-Resolution models are typically trained using LR images that were generated by downsampling HR images with a bicubic kernel (this is shown in the left image which is image number 10 from the DIV2K dataset). A better performance can be acheived by using realisic blur kernels (right image). This repo contains Blur Kernels that can be used to develop datasets for Super Rresolution models. The original work and much of the code is adapted from Zhou and Strusstrunk.

Dark Channel Kernels

Kernels generated from the DPED dataset using Dark Channels. The code to generate these kernels can be found in Zhou and Strusstrunk's repo. This repo contains 1825 of these kernels. These kernels are saved in Kernel_Generator/Dark Channel Kenrels.7z as .mat files and can be read using scipy.io.loadmat.

GAN Kernels

Matlab kernels were used to train a GAN to generate more kernels. These kernels containe a more diverse set of features and are better suited for training SR models. To generate these kernels download the decriminator and generator weights from here. Then add Kernel_Generator/utils/ to the path. The kernels can be generated by running wgan-edit.ipnyb but make sure the model is pointed to the weights to generate kernels.

Top row: images of Dark Channel blur kernels.
Bottom row: images devloped using a GAN

About

A collection of blur kernels to generate Super Resolution datasets

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published