summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxAlpharax <42233094+xAlpharax@users.noreply.github.com>2023-12-08 23:16:44 +0200
committerxAlpharax <42233094+xAlpharax@users.noreply.github.com>2023-12-08 23:16:44 +0200
commit44bcbe8825cec9245373e7e807a615d4441b6287 (patch)
tree537c32924c38518e28fc9abb991b4a7f48687cf0
parentf84f667542ed2966191221c25902737ca4cb197e (diff)
Better stylize script and small changes in rendering
Changes to be committed: modified: README.md modified: renderer.py modified: stylize.sh
-rw-r--r--README.md2
-rw-r--r--renderer.py2
-rwxr-xr-xstylize.sh4
3 files changed, 5 insertions, 3 deletions
diff --git a/README.md b/README.md
index 9d484fb..eab022a 100644
--- a/README.md
+++ b/README.md
@@ -104,7 +104,7 @@ https://github.com/xAlpharax/neural-art/assets/42233094/216b9e44-b563-42f7-9d66-
https://github.com/xAlpharax/neural-art/assets/42233094/c6c4f4d1-f00e-4388-b726-5f6358cb5bc8
-[//]: # (Cute in Jitter Doll a.k.a. how my profile pic was generated)
+[//]: # (Cute in Jitter Doll a.k.a. how my profile pic was generated)
https://github.com/xAlpharax/neural-art/assets/42233094/981f2855-2524-4c83-87f4-beac6ff5cfa6
diff --git a/renderer.py b/renderer.py
index 5975d21..0803430 100644
--- a/renderer.py
+++ b/renderer.py
@@ -4,7 +4,7 @@
import numpy as np
-# will need some added functionality there for *.npy
+# TODO: will need some added functionality there for *.npy
image_array = np.load("images.npy")
### progress bar
diff --git a/stylize.sh b/stylize.sh
index ee39b47..ee30f18 100755
--- a/stylize.sh
+++ b/stylize.sh
@@ -34,4 +34,6 @@ python renderer.py
python renderer.py --fix
# wrap everything into a video (automatically overrides)
-ffmpeg -y -framerate 60 -c:v libx264 -pix_fmt yuv420p -qp 0 -pattern_type glob -i 'Output/neural_art_*.png' -vf "pad=ceil(iw/2)*2:ceil(ih/2)*2" $(basename ${2%.*})'_in_'$(basename ${1%.*})'.mp4'
+ffmpeg -y -framerate 60 -pattern_type glob -i 'Output/neural_art_*.png' -c:v libx264 -pix_fmt yuv420p -vf "pad=ceil(iw/2)*2:ceil(ih/2)*2" $(basename ${2%.*})'_in_'$(basename ${1%.*})'.mp4' # H.264 all around
+#ffmpeg -y -framerate 60 -pattern_type glob -i 'Output/neural_art_*.png' -c:v libsvtav1 -pix_fmt yuv420p -vf "pad=ceil(iw/2)*2:ceil(ih/2)*2" $(basename ${2%.*})'_in_'$(basename ${1%.*})'.mp4' # AV1 weirddd
+#ffmpeg -y -framerate 60 -pattern_type glob -i 'Output/neural_art_*.png' -c:v libvpx-vp9 -pix_fmt yuv420p -vf "pad=ceil(iw/2)*2:ceil(ih/2)*2" $(basename ${2%.*})'_in_'$(basename ${1%.*})'.mp4' # VP9 quality