Improving image resolution with deep learning
Convolutional Neural Networks (CNNs) can also be used to improve the resolution of low-quality images. Historically, we can achieve this by using interpolation techniques, example-based approaches, or low- to high-resolution mappings that must be learned.
As we'll see in this recipe, we can obtain better results faster by using an end-to-end deep learning-based approach.
Sound interesting? Let's get to it!
Getting ready
We will need Pillow
in this recipe, which you can install with the following command:
$> pip install Pillow
In this recipe, we are using the Dog and Cat Detection
dataset, which is hosted on Kaggle: https://www.kaggle.com/andrewmvd/dog-and-cat-detection. In order to download it, you'll need to sign in on the website or sign up. Once you're logged in, save it in a place of your preference as dogscats.zip
. Finally, decompress it in a folder named dogscats
. From now on, we'll...