SETUP for NEURAL-ENHANCE on Ubuntu 16.04 / 171226 https://github.com/alexjc/neural-enhance
-
Remove old versions of Docker sudo apt-get remove docker docker-engine docker.io
-
Docker dependencies sudo apt-get install
apt-transport-https
ca-certificates
curl
software-properties-common -
Add Docker repo key curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
-
Add Docker repo sudo add-apt-repository
"deb [arch=amd64] https://download.docker.com/linux/ubuntu
$(lsb_release -cs)
stable" -
Install Docker sudo apt-get update sudo apt-get install docker-ce
-
Install Neural-Enhance Docker image sudo docker run --rm -v
pwd
:/ne/input -it alexjc/neural-enhance --help -
Add an alias to your .bashrc alias enhance='function ne() { sudo docker run --rm -v "$(pwd)/
dirname ${@:$#}
":/ne/input -it alexjc/neural-enhance${@:1:$ #-1} "input/basename ${@:$#}
"; }; ne' -
Run a test command: enhance --zoom=1 --model=repair images/broken.jpg enhance --zoom=2 "images/*.jpg"
Notes:
- By default the Docker container assumes that input files are in a subdirectory of the GitHub repo ./input .
- The --model=repair switch only works together with --zoom=1. Use it to clean up the output of higher zoom levels in a separate pass.
- You can also use the repair switch to clean up an image resized in other software.