From cf395a0190a709fb3a44e2c42b2f401e434cb037 Mon Sep 17 00:00:00 2001 From: xAlpharax <42233094+xAlpharax@users.noreply.github.com> Date: Sun, 19 Mar 2023 22:48:02 +0200 Subject: 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 --- .gitignore | 2 +- Images/Gift.jpg | Bin 0 -> 44053 bytes Images/demon.jpg | Bin 151759 -> 0 bytes clear_dir.sh | 2 +- neuralart.py | 4 ++-- stylize.sh | 6 +++--- 6 files changed, 7 insertions(+), 7 deletions(-) create mode 100644 Images/Gift.jpg delete mode 100644 Images/demon.jpg 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 Binary files /dev/null and b/Images/Gift.jpg differ diff --git a/Images/demon.jpg b/Images/demon.jpg deleted file mode 100644 index b52ece4..0000000 Binary files a/Images/demon.jpg and /dev/null 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 -- cgit v1.2.3