|
6 vuotta sitten | |
---|---|---|
.vscode | 6 vuotta sitten | |
fasterai | 6 vuotta sitten | |
result_images | 6 vuotta sitten | |
test_images | 6 vuotta sitten | |
.gitattributes | 6 vuotta sitten | |
.gitignore | 6 vuotta sitten | |
ColorizeTraining.ipynb | 6 vuotta sitten | |
ColorizeTrainingNew.ipynb | 6 vuotta sitten | |
ColorizeTrainingWide.ipynb | 6 vuotta sitten | |
ImageColorizer.ipynb | 6 vuotta sitten | |
ImageColorizerColab.ipynb | 6 vuotta sitten | |
LICENSE | 6 vuotta sitten | |
README.md | 6 vuotta sitten | |
SuperResTraining.ipynb | 6 vuotta sitten | |
VideoColorizer.ipynb | 6 vuotta sitten | |
VideoColorizerColab.ipynb | 6 vuotta sitten | |
environment.yml | 6 vuotta sitten | |
requirements.txt | 6 vuotta sitten |
Simply put, the mission of this project is to colorize and restore old images and film footage. I'll get into the details in a bit, but first let's see some pretty pictures and videos!
Maria Anderson as the Fairy Fleur de farine and Lyubov Rabtsova as her page in the ballet “Sleeping Beauty” at the Imperial Theater, St. Petersburg, Russia, 1890.
Woman relaxing in her livingroom (1920, Sweden)
Medical Students pose with a cadaver around 1890
Surfer in Hawaii, 1890
Whirling Horse, 1898
Interior of Miller and Shoemaker Soda Fountain, 1899
Paris in the 1880s
Edinburgh from the sky in the 1920s
Texas Woman in 1938
People watching a television set for the first time at Waterloo station, London, 1936
Geography Lessons in 1850
Chinese Opium Smokers in 1880
Deadwood, South Dakota, 1877
Siblings in 1877
Portsmouth Square in San Franscisco, 1851
Samurais, circa 1860s
Seneca Native in 1908
This is a deep learning based model. More specifically, what I've done is combined the following approaches:
Of note: There's no longer any "Progressive Growing of GANs" type training going on here. It's just not needed in lieu of the superior results obtained by the GAN Supertransfer Learning technique described above.
The beauty of this model is that it should be generally useful for all sorts of image modification, and it should do it quite well. What you're seeing above are the results of the colorization model, but that's just one component in a pipeline that I'm looking to develop here with the exact same approach.
So that's the gist of this project – I'm looking to make old photos and film look reeeeaaally good with GANs, and more importantly, make the project useful. In the meantime though this is going to be my baby and I'll be actively updating and improving the code over the foreseeable future. I'll try to make this as user-friendly as possible, but I'm sure there's going to be hiccups along the way.
Oh and I swear I'll document the code properly...eventually. Admittedly I'm one of those people who believes in "self documenting code" (LOL).
The easiest way to get started is to go straight to the Colab notebooks:
Special thanks to Matt Robinson and María Benavente for their image Colab notebook contributions, and Robert Bell for the video Colab notebook work!
You should now be able to do a simple install with Anaconda. Here are the steps:
Open the command line and navigate to the root folder you wish to install. Then type the following commands
git clone https://github.com/jantic/DeOldify.git DeOldify
cd DeOldify
conda env create -f environment.yml
Then start running with these commands:
source activate deoldify
jupyter lab
From there you can start running the notebooks in Jupyter Lab, via the url they provide you in the console.
This project is built around the wonderful Fast.AI library. Prereqs, in summary:
conda install -c conda-forge jupyterlab
conda install -c anaconda tensorflow-gpu
and pip install tensorboardX
To start right away on your own machine with your own images or videos without training the models yourself, you'll need to download the weights and drop them in the /models/ folder.
You can then do image colorization in this notebook: ImageColorizer.ipynb
And you can do video colorization in this notebook: VideoColorizer.ipynb
The notebooks should be able to guide you from here.