summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxAlpharax <42233094+xAlpharax@users.noreply.github.com>2023-03-19 22:48:02 +0200
committerxAlpharax <42233094+xAlpharax@users.noreply.github.com>2023-03-19 22:48:02 +0200
commitcf395a0190a709fb3a44e2c42b2f401e434cb037 (patch)
tree9bbff33bd8cfd77a2249489a0c174c75162a3eaa
parentd48a55f41188ac3cba7202c3ccfe74e5d8203b69 (diff)
Deeper visuals & default iterations were set to 6k
Changes to be committed: modified: .gitignore new file: Images/Gift.jpg deleted: Images/demon.jpg modified: clear_dir.sh modified: neuralart.py modified: stylize.sh
-rw-r--r--.gitignore2
-rw-r--r--Images/Gift.jpgbin0 -> 44053 bytes
-rw-r--r--Images/demon.jpgbin151759 -> 0 bytes
-rwxr-xr-xclear_dir.sh2
-rw-r--r--neuralart.py4
-rwxr-xr-xstylize.sh6
6 files changed, 7 insertions, 7 deletions
diff --git a/.gitignore b/.gitignore
index b25872c..f7d3677 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,8 +1,8 @@
### custom ignores here
weights/*.pth
-Images/personal/
Output/*.png
*.npy
+*.mp4
todo
# Byte-compiled / optimized / DLL files
diff --git a/Images/Gift.jpg b/Images/Gift.jpg
new file mode 100644
index 0000000..c95933b
--- /dev/null
+++ b/Images/Gift.jpg
Binary files differ
diff --git a/Images/demon.jpg b/Images/demon.jpg
deleted file mode 100644
index b52ece4..0000000
--- a/Images/demon.jpg
+++ /dev/null
Binary files differ
diff --git a/clear_dir.sh b/clear_dir.sh
index fd3880f..5a5ff33 100755
--- a/clear_dir.sh
+++ b/clear_dir.sh
@@ -3,5 +3,5 @@
### clearing up the directory
### from temporary files
-rm -rf __pycache__ # Output* future
+rm -rf __pycache__
rm -f Output/*.png *.npy
diff --git a/neuralart.py b/neuralart.py
index 2495da8..aee66b9 100644
--- a/neuralart.py
+++ b/neuralart.py
@@ -1,6 +1,6 @@
#!/bin/python
-### imports (will come with a requirements.txt)
+### imports (should be covered by requirements.txt)
from torch.autograd import Variable
from torchvision import transforms
@@ -234,7 +234,7 @@ targets = style_targets + content_targets
import numpy as np
from tqdm import tqdm
-vis_factor = 5
+vis_factor = 10
max_iter = 600 * vis_factor
show_iter = 1 * vis_factor
diff --git a/stylize.sh b/stylize.sh
index 45f1961..2cb7e99 100755
--- a/stylize.sh
+++ b/stylize.sh
@@ -20,15 +20,15 @@ if [ $# -eq 1 ] ; then
exit 1
fi
-./clear_dir.sh # of now useless files
+./clear_dir.sh # clear past checkpoint/realtime files
# stylize data [pair (style, content)]
python neuralart.py $1 $2
-# render images (actual frames) from (an) images.npy
+# render each image (actual frames) as per images.npy data
python renderer.py
-# fix render artifacts
+# fix weird render artifacts
python renderer.py --fix
# wrap everything into a video