Pixelated image (left), depixelated by our model (middle), and the ground truth (right)
Pixelation is a common issue in images, leading to a loss of quality and important details.It generally arises due to downscaling an image by some factor and then upscaling it using some interpolation method. The objective of this project is to develop models capable of detecting and depixelating images, restoring them to a higher quality while maintaining computational efficiency.
This repository contains two primary models: a detector model to identify pixelated images and a depixelator model to restore pixelated images to their original quality. Both models were inspired by the U-Net architecture but optimized for efficiency using depthwise and pointwise convolutions.
Project report can be found here.
These are the testing files. Users should follow the instructions in these files to test our detector and depixelator models.
Step-by-Step Guide to Test Our Models
-
Update and Import Libraries: Ensure all required libraries are updated to the necessary versions and import them.
-
Load the Models: Load the pre-trained detector or depixelator model.
-
(Important) Implement the TODO Cell: Complete the
TODO
cell according to your own dataset, definingimage_paths
andimage_labels
orpixelated_image_paths
, and optionallyreal_image_paths
. -
Test the Model: Follow the steps provided in the testing files to effectively test the models on your dataset.
These are the training files used for our detector and depixelator models. They are included for reference to show how we trained our models.
These images depict the detailed architectures of our models.
These files contain the pre-trained models with their corresponding architectures.
This folder contains some successful and unsuccessful depixelation examples from our model.
This repository offers a comprehensive solution for detecting and depixelating images, utilizing state-of-the-art techniques for efficiency and accuracy. By following the provided instructions and completing the required steps, users can effectively apply these models to their datasets to achieve high-quality image restoration.
For any questions or issues, please feel free to open an issue on this repository.