Skip to content

raminguyen/Image-Colorization

Repository files navigation

🟦 Enhancing Image Colorization Using Conditional GANs

Bring grayscale images to life with deep learning!

🟦 What’s This Project About?

Our project transforms black-and-white images into vibrant, colorized versions using a Conditional Generative Adversarial Network (cGAN). We combine a ResNet18 encoder, Dynamic UNet decoder, and PatchGAN discriminator to learn realistic mappings from grayscale to color. Our work automates a process that once required manual skill — making it instant, scalable, and accessible.

View our paper | Presentation

🟦 Problem & Solution

Problem

Grayscale images are emotionally powerful, but lack visual richness. Manual recoloring is slow, costly, and inconsistent.

Solution

We train a deep learning model to learn color patterns from real-world images and apply them to black-and-white inputs — offering fast, accurate, and beautiful colorization.

🟦 Real-World Applications

  • Revive old family photos
  • Recolor historic archives
  • Help artists and content creators
  • Restore vintage films
  • Create colorful educational materials

🟦 Model Architecture

- Encoder: ResNet18 (pretrained)
- Decoder: Dynamic UNet
- Discriminator: 70x70 PatchGAN
- Loss: L1 Loss + GAN Loss
- Image Size: 256x256

🟦 Training Information

Setting Details
Dataset Subset of ImageNet (~10k images)
Libraries PyTorch, FastAI, OpenCV, NumPy
Training Time ~10 hours
Optimizer Adam (β₁ = 0.5, β₂ = 0.999)
Evaluation Metrics MSE, SSIM, Visual Comparison


Top 10 good predictions based on Peak Signal-to-Noise Ratio Metric


Top 10 worse predictions based on Peak Signal-to-Noise Ratio Metric

🟦 Future Improvements

  • Real-time demo
  • Mobile + web support
  • Adjustable color warmth/vibrancy
  • Add Vision Transformers + Diffusion models
  • Tune for specific photo types (portraits, landscapes)

🟦 Meet the Team

Acknowledgements

#UMassBoston #ImageColorization #DeepLearning #CGAN #Rami #Avanith #Pranathi

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages