15.1 colorize configure
20221202
The colorize package is Python based and utilises tensorflow and keras. To check that everything is installed run the configure command:
The configuration will proceed with something like the following:
*** The following required system packages are already installed:
python3-numpy python3-pydot python3-matplotlib python3-opencv python3-graphviz python3-toolz
*** Installing Python package tensorflow-cpu by pip into
/home/kayon/.mlhub/colorize/.python
Do you want to pip install tensorflow-cpu [Y/n]?
...
Python and support files are downloaded from GitHub as specified in the MLHUB.yaml file.
meta:
name : colorize
title : Demonstrate the concept of photo colorization.
keywords : python, graphics, colorize, tensorflow, keras, computer vision
languages : py
license : gpl3
author : Yang Liu
maintainer : Graham Williams
url : https://github.com/mlhubber/colorize
dependencies:
python3: # Operating system installed packages.
- numpy
- pydot
- matplotlib
- opencv # python3-opencv not available Ubuntu 16.04
- graphviz # python3-graphviz not available Ubuntu 16.04
- toolz
pip3: # Local user pip3 installed packages.
- tensorflow-cpu
- keras>=2.4.3 # Ubuntu 20.04 has 2.2.4 leading to errors. Works with 2.4.3.
files:
- https://github.com/foamliu/Simple-Colorization/releases/download/v1.0/model.06-2.5489.hdf5: cache/models/
- data
- demo.py
- images
- README.md
- color.py
- utils.py
commands:
demo : Demonstrate colorization on sample black-and-white images.
color : Colorize images given by a path or URL.
Your donation will support ongoing availability and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2022 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0