diff options
author | pux <pux@pux.dom> | 2020-02-13 06:29:30 +0100 |
---|---|---|
committer | pux <pux@pux.dom> | 2020-02-13 06:29:30 +0100 |
commit | 5debed6fe0cb66cdfd217254a23405e98d94eabb (patch) | |
tree | 33e61978129089efb397c42ab5a5f11cd2679017 | |
parent | 0f7854e41837e575449c44b3e92782b6efc4320d (diff) | |
download | nstvid-5debed6fe0cb66cdfd217254a23405e98d94eabb.tar.gz nstvid-5debed6fe0cb66cdfd217254a23405e98d94eabb.tar.bz2 nstvid-5debed6fe0cb66cdfd217254a23405e98d94eabb.zip |
remove spickzettel
-rwxr-xr-x | nstvid.py.ref | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/nstvid.py.ref b/nstvid.py.ref deleted file mode 100755 index bd526d9..0000000 --- a/nstvid.py.ref +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/env python - -import os -import glob -import sys - -os.chdir("/home/pux/p/nst_vid") -for filename in sorted(glob.glob('image-*.jpg')): - num = filename[6:-4] - print(filename) - print(num) - os.chdir("/home/pux/src/neural-style-pt") - - os.system("python neural_style.py -style_image /home/pux/p/nst_vid/style.jpg -content_image /home/pux/p/nst_vid/image-" + str(num) + ".jpg -output_image ~/p/nst_vid/generated-" + str(num) + ".jpg -image_size 384 -style_weight 1000 -content_weight 5 -cudnn_autotune -tv_weight 0.00085 -num_iterations 1000 -print_iter 50 -init image -optimizer lbfgs -learning_rate 1.0 -lbfgs_num_correction 100 -style_scale 1.0 -pooling max -backend cudnn -seed 100 -content_layers relu1_1,relu2_1,relu3_1,relu4_1,relu4_2,relu5_1 -style_layers relu3_1,relu4_1,relu4_2,relu5_1 -multidevice_strategy 4,7,29") - - os.system("python opticalflow.py --input_1 /home/pux/p/nst_vid/image-" + str(num) + ".jpg --input_1_styled /home/pux/p/nst_vid/generated-" + str(num) + ".jpg --input_2 /home/pux/p/nst_vid/image-" + str(int(num)+1).zfill(5) + ".jpg --output /home/pux/p/nst_vid/blended-" + str(num) + ".jpg --alpha 0.55 --flowblend False") |