Skip to content

This project uses the GAN-Unet model to automatically add color to grayscale images. The combination of Generative Adversarial Networks (GANs) and the Unet architecture allows the model to generate realistic and vibrant color details, enhancing the visual appeal of black and white images.

Notifications You must be signed in to change notification settings

ThanhSan97/Image-colorization-using-GAN_UNET

Repository files navigation

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. Images result are stored in static/generated folder
  • 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

III. Project members

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

About

This project uses the GAN-Unet model to automatically add color to grayscale images. The combination of Generative Adversarial Networks (GANs) and the Unet architecture allows the model to generate realistic and vibrant color details, enhancing the visual appeal of black and white images.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages