summaryrefslogtreecommitdiff
path: root/stylize.sh
diff options
context:
space:
mode:
authorxAlpharax <42233094+xAlpharax@users.noreply.github.com>2023-03-04 03:29:19 +0200
committerxAlpharax <42233094+xAlpharax@users.noreply.github.com>2023-03-04 03:29:19 +0200
commitd48a55f41188ac3cba7202c3ccfe74e5d8203b69 (patch)
treee51995fcd85f7b62254d5e29821058e0c484013f /stylize.sh
parentbd19b46d7544ff94be0e8eaccb4e1bd18d44b996 (diff)
Minor changes for the user's script.
Diffstat (limited to 'stylize.sh')
-rwxr-xr-xstylize.sh8
1 files changed, 4 insertions, 4 deletions
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'