This project implements an automatic colorization algorithm for black and white images using a pre-trained deep learning model. The model, based on the Caffe framework, predicts the 'a' and 'b' channels of the Lab color space, given the 'L' channel of an image.
- Python 3.x
- OpenCV
- NumPy
- Matplotlib
- Clone the repository:
git clone https://github.com/kalainilavan314/Automatic_Colorization.git cd Automatic_Colorization - Install the required Python packages:
pip install -r requirements.txt
-
Download the pre-trained models and place them in the
modelsdirectory: -
Add the path to your black and white image in the script.
-
Run the script:
python main.py
Contributions are welcome! Please open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
- Richard Zhang for the colorization model and resources.
- OpenCV and Caffe for providing the framework.