diff options
author | xAlpharax <42233094+xAlpharax@users.noreply.github.com> | 2023-03-19 22:48:02 +0200 |
---|---|---|
committer | xAlpharax <42233094+xAlpharax@users.noreply.github.com> | 2023-03-19 22:48:02 +0200 |
commit | cf395a0190a709fb3a44e2c42b2f401e434cb037 (patch) | |
tree | 9bbff33bd8cfd77a2249489a0c174c75162a3eaa | |
parent | d48a55f41188ac3cba7202c3ccfe74e5d8203b69 (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-- | .gitignore | 2 | ||||
-rw-r--r-- | Images/Gift.jpg | bin | 0 -> 44053 bytes | |||
-rw-r--r-- | Images/demon.jpg | bin | 151759 -> 0 bytes | |||
-rwxr-xr-x | clear_dir.sh | 2 | ||||
-rw-r--r-- | neuralart.py | 4 | ||||
-rwxr-xr-x | stylize.sh | 6 |
6 files changed, 7 insertions, 7 deletions
@@ -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 Binary files differnew file mode 100644 index 0000000..c95933b --- /dev/null +++ b/Images/Gift.jpg diff --git a/Images/demon.jpg b/Images/demon.jpg Binary files differdeleted file mode 100644 index b52ece4..0000000 --- a/Images/demon.jpg +++ /dev/null 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 @@ -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 |