summaryrefslogtreecommitdiff
path: root/stylize.sh
diff options
context:
space:
mode:
authorAlphara <alphara@deltarion>2023-02-12 01:15:54 +0200
committerAlphara <alphara@deltarion>2023-02-12 01:15:54 +0200
commitc43fdcf1ee45ecd112411f77b2519cbee9941b04 (patch)
treef628b7eefd1476dbcac1340f3eaec54cd526617c /stylize.sh
parent7c84258c739c7c998526ad86fbea51bb6e8c6f7a (diff)
initial migration of the project
Diffstat (limited to 'stylize.sh')
-rwxr-xr-xstylize.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/stylize.sh b/stylize.sh
new file mode 100755
index 0000000..0095629
--- /dev/null
+++ b/stylize.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+### You must be in the 'neural-art' directory when you run this
+
+if [ $# -eq 2 ]
+ then
+ echo "Video file needs to be specified"
+ exit 1
+fi
+
+# stylize data [pair (style, content)]
+python neuralart.py $1 $2
+
+# render images (actual frames) from images.npy
+python renderer.py
+
+# turn 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" $3