BoranT-3000 / Colorize-black-and-white-images

Colorizing black and white images with the help of hallucination technique

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Colorize black and white photos

A python script to convert black and white images to colorized images with the help of hallucinations technique.

Table of Content

Motivation

Everyting started with the term project of my friends. They were trying to figure out what they were going to do and Teacher told them to do colorizing the black and white images. When i searched, i found so many things and this is what i gathered around just for a start. I want to continue on this project.

Web App

I did not know we could do such a thing. Maybe you do not know either thats why I m putting this app.py here just look it out

  1. intall streamlit with -> pip install streamlit
  2. to work with it -> streamlit run app.py
  3. open up the url given by program here you go.

Before working with project

  1. I recommed you to use virtualenv (pip install virtualenv)
  2. py -m venv color to create virtual enviroment
  3. Activate with this command .\color\Scripts\activate and deactivate is just what it means
  4. Just be sure to use whats inside requirements and you are good to go !!!
  5. pip install -r requirements.txt
  6. download caffe model from "here"

Requirements

  • Python 3.4+
  • numpy 1.23.4
  • opencv 4.6.0.66
  • Pillow 9.3.0
  • os
  • virtualenv 20.16.5

Credits

About

Colorizing black and white images with the help of hallucination technique

License:MIT License


Languages

Language:Python 100.0%