AI Project - Image colorization using GAN-Unet

I. Introduction This is a project to build an automatic image colorization model from black and white images using a combination of GAN (Generative Adversarial Networks) and UNET neural network model. With a grayscale image as input, the model produces a colored image as output.Explore the documentation on GAN and Unet to gain a better understanding of these two models and how they synergize with each other.

At this point, we only use the final file of the project with a size (SIZE) of 128x128. However, before that, we trained on this dataset at a size of 64x64. The reason we use two models with different sizes in this project is because the resources of Google Colab are limited and cannot be used to train on large datasets or input sizes that are too large

Fundamentally, the training process for the two models and the image colorization process are identical. We used the 64x64 model as a pre-trained model to optimize resources and enhance output quality for the main model, which is the 128x128 model.

*Required paths:

*Regarding the important files in the project: static: Location for storing input and output images on the website. template: Builds the basic interface. app.py: Uses the Flask library to embed the model into the web

II. Step to Clone the GitHub repository and run the project

  1. Clone the repository
  1. Go to folder and Install the necessary libraries with pip
  • pip install -r requirements.txt
  1. Download the 'model.h5' file and save it to the project directory.
  2. Run app.py
  3. Enjoy the game
  4. Here are the ouput: https://youtu.be/BBzpd4iq4vE

III. Project members

  1. NGUYEN DINH THANH SAN
  • Major: Artificial Intelligence Contact:
  1. NGUYEN HUYNH CHI KHANG
  • Major: Artificial Intelligence Contact: