From d48a55f41188ac3cba7202c3ccfe74e5d8203b69 Mon Sep 17 00:00:00 2001 From: xAlpharax <42233094+xAlpharax@users.noreply.github.com> Date: Sat, 4 Mar 2023 03:29:19 +0200 Subject: Minor changes for the user's script. --- stylize.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'stylize.sh') diff --git a/stylize.sh b/stylize.sh index ac9beba..45f1961 100755 --- a/stylize.sh +++ b/stylize.sh @@ -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' -- cgit v1.2.3