diff options
Diffstat (limited to 'stylize.sh')
-rwxr-xr-x | stylize.sh | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,6 +1,6 @@ #!/bin/bash -### You must be in the 'neural-art' directory when you run this +set -e ### exit the script if any part of it fails cwd=$(pwd | sed -r 's%.*/%%g') if [ $cwd != "neural-art" ] ; then @@ -20,7 +20,7 @@ if [ $# -eq 1 ] ; then exit 1 fi -./clear_dir.sh +./clear_dir.sh # of now useless files # stylize data [pair (style, content)] python neuralart.py $1 $2 @@ -28,8 +28,8 @@ python neuralart.py $1 $2 # render images (actual frames) from (an) images.npy python renderer.py -# render fix +# fix render artifacts python renderer.py --fix -# turn everything into a video +# wrap everything into a video ffmpeg -framerate 60 -pattern_type glob -i 'Output/neural_art_*.png' -vf "pad=ceil(iw/2)*2:ceil(ih/2)*2" $(basename ${2%.*})'_in_'$(basename ${1%.*})'.mp4' |