This is the demo code for the paper Aesthetic-Driven Image Enhancement by Adversarial Learning by Deng et al. at ACMMM 2018. (ArXiv).
The code is based on: [1] https://github.com/soumith/dcgan.torch [2] https://github.com/qassemoquab/stnbhwd
git clone https://github.com/torch/distro.git ~/torch --recursive
cd ~/torch; bash install-deps;
./install.sh;
source ~/.bashrc;
git clone https://github.com/qassemoquab/stnbhwd.git; cd stnbhwd && luarocks make stnbhwd-scm-1.rockspec;
cp ./stn/*.lua ~/torch/install/share/lua/5.1/stn/
luarocks install cudnn; # (The current version requires cudnn 5.0)
luarocks install tds;
luarocks intsall nngraph;
luarocks install dpnn;
luarocks install matio; # (Make sure that the shared libraries (libmatio.so or libmatio.dylib) are in your library path, e.g., sudo apt-get install libmatio2)
luarocks install https://raw.githubusercontent.com/szym/display/master/display-scm-0.rockspec
Optionally, for displaying images during training and generation, we will use the display package. Start the server with: th -ldisplay.start Open this URL in your browser: http://localhost:8000
You may download the models and our images (from AVA dataset) and extract to the repective directories from Google_Drive or Baidu Pan
cd ./ACMMM_2018_release;
./run_single_image.sh
cd ./ACMMM_2018_release;
./train_my_own.sh