From 37a3da766addf1f0f66e5b4b5c80cc58ef2f734a Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 10 Oct 2016 02:46:47 -0600 Subject: Add files via upload --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 0824069..ed76866 100644 --- a/README.md +++ b/README.md @@ -76,6 +76,10 @@ When using multiple style images, the degree to which they are blended can be co + + + +

### Transfer style but not color -- cgit v1.2.3-70-g09d2 From e4b75e6d93a0d3fa3796e8009468bd1f59e7e2a9 Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 10 Oct 2016 02:48:17 -0600 Subject: Add files via upload --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index ed76866..aa0ef22 100644 --- a/README.md +++ b/README.md @@ -73,13 +73,13 @@ More than one style image can be used to blend multiple artistic styles. ### Style Interpolation When using multiple style images, the degree to which they are blended can be controlled.

- - - + + + - - - + + +

### Transfer style but not color -- cgit v1.2.3-70-g09d2 From e5e986c4e86d8a25427d0f61aa014f5178bd8807 Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 10 Oct 2016 02:51:12 -0600 Subject: Add files via upload --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index aa0ef22..ccd543a 100644 --- a/README.md +++ b/README.md @@ -73,13 +73,13 @@ More than one style image can be used to blend multiple artistic styles. ### Style Interpolation When using multiple style images, the degree to which they are blended can be controlled.

- - - + + + - - - + + +

### Transfer style but not color -- cgit v1.2.3-70-g09d2 From 13f036e352298e3a3989ed4222863c92f892d64e Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 10 Oct 2016 02:59:22 -0600 Subject: Add files via upload --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index ccd543a..957767c 100644 --- a/README.md +++ b/README.md @@ -73,13 +73,13 @@ More than one style image can be used to blend multiple artistic styles. ### Style Interpolation When using multiple style images, the degree to which they are blended can be controlled.

- - - + + + - - - + + +

### Transfer style but not color -- cgit v1.2.3-70-g09d2 From 2bcfaafc7b62aab68625ba4078b1eb3fe8950513 Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 10 Oct 2016 12:35:34 -0600 Subject: Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 957767c..d87d87f 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ More than one style image can be used to blend multiple artistic styles. ### Style Interpolation When using multiple style images, the degree to which they are blended can be controlled.

- + @@ -353,4 +353,4 @@ If you find this code useful for your research, please cite: journal = {GitHub repository}, howpublished = {\url{https://github.com/cysmith/neural-style-tf}}, } -``` \ No newline at end of file +``` -- cgit v1.2.3-70-g09d2 From 954b2c42883c8c64e65ffbe0cd97ca0a6b0aba42 Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 10 Oct 2016 12:38:46 -0600 Subject: Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d87d87f..427071c 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ More than one style image can be used to blend multiple artistic styles. When using multiple style images, the degree to which they are blended can be controlled.

- + -- cgit v1.2.3-70-g09d2 From 1729caf2207d04030f3e74506aacf22b56b25968 Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 10 Oct 2016 14:05:04 -0600 Subject: Update README.md --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 427071c..ead2a97 100644 --- a/README.md +++ b/README.md @@ -112,16 +112,16 @@ Style can be transferred to semantic segmentations in the content image. - - - + + + - - - + + +

Multiple styles can be transferred to the foreground and background of the content image. -- cgit v1.2.3-70-g09d2 From 617bfd59e1f8df74e5d5dca170abc2e3b4fffc64 Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 10 Oct 2016 14:09:59 -0600 Subject: Update README.md --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index ead2a97..4039769 100644 --- a/README.md +++ b/README.md @@ -112,16 +112,16 @@ Style can be transferred to semantic segmentations in the content image. - - - + + + - - - + + +

Multiple styles can be transferred to the foreground and background of the content image. -- cgit v1.2.3-70-g09d2 From 6155e8de0cfd6117a4804c18a64b75d52e0ae21c Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 10 Oct 2016 14:30:51 -0600 Subject: Check directory exists before removal --- stylize_video.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/stylize_video.sh b/stylize_video.sh index cb8698c..082fc9d 100644 --- a/stylize_video.sh +++ b/stylize_video.sh @@ -45,6 +45,9 @@ style_image="$2" style_dir=$(dirname "$style_image") style_filename=$(basename "$style_image") +if [ ! -d "./video_input" ]; then + mkdir ./video_input +fi temp_dir="./video_input/${content_filename}" # Create output folder @@ -81,4 +84,6 @@ echo "Converting image sequence to video. This should be quick..." $FFMPEG -v quiet -i ./video_output/frame_%04d.ppm ./video_output/${content_filename}-stylized.$extension # Clean up garbage -rm -rf "${temp_dir}" \ No newline at end of file +if [ -d "${temp_dir}" ]; then + rm -rf "${temp_dir}" +fi -- cgit v1.2.3-70-g09d2 From 5c22f5934e1ece0cf5764c1d1fe2d5d1ab5f88d3 Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 10 Oct 2016 14:34:15 -0600 Subject: Update stylize_video.sh --- stylize_video.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stylize_video.sh b/stylize_video.sh index 082fc9d..7f9cd6e 100644 --- a/stylize_video.sh +++ b/stylize_video.sh @@ -46,7 +46,7 @@ style_dir=$(dirname "$style_image") style_filename=$(basename "$style_image") if [ ! -d "./video_input" ]; then - mkdir ./video_input + mkdir -p ./video_input fi temp_dir="./video_input/${content_filename}" @@ -59,9 +59,9 @@ eval $(ffprobe -v error -of flat=s=_ -select_streams v:0 -show_entries stream=wi width="${streams_stream_0_width}" height="${streams_stream_0_height}" if [ "$width" -gt "$height" ]; then - max_size="$width" + max_size="$width" else - max_size="$height" + max_size="$height" fi num_frames=$(find "$temp_dir" -iname "*.ppm" | wc -l) -- cgit v1.2.3-70-g09d2 From 30655cfd844f15c40e4870d2e7d4a7952240bde7 Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 10 Oct 2016 18:31:44 -0700 Subject: Add files via upload --- examples/style_interpolation/afremov_grey_2_8_.png | Bin 0 -> 439675 bytes examples/style_interpolation/afremov_grey_5_5.png | Bin 0 -> 440266 bytes examples/style_interpolation/afremov_grey_8_2_.png | Bin 0 -> 441781 bytes 3 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 examples/style_interpolation/afremov_grey_2_8_.png create mode 100644 examples/style_interpolation/afremov_grey_5_5.png create mode 100644 examples/style_interpolation/afremov_grey_8_2_.png diff --git a/examples/style_interpolation/afremov_grey_2_8_.png b/examples/style_interpolation/afremov_grey_2_8_.png new file mode 100644 index 0000000..e716a51 Binary files /dev/null and b/examples/style_interpolation/afremov_grey_2_8_.png differ diff --git a/examples/style_interpolation/afremov_grey_5_5.png b/examples/style_interpolation/afremov_grey_5_5.png new file mode 100644 index 0000000..f036770 Binary files /dev/null and b/examples/style_interpolation/afremov_grey_5_5.png differ diff --git a/examples/style_interpolation/afremov_grey_8_2_.png b/examples/style_interpolation/afremov_grey_8_2_.png new file mode 100644 index 0000000..1711263 Binary files /dev/null and b/examples/style_interpolation/afremov_grey_8_2_.png differ -- cgit v1.2.3-70-g09d2 From ab3fd036f9d781c8f8238cfc3135fd2210ca0017 Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 10 Oct 2016 19:32:21 -0600 Subject: Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4039769..5e318f3 100644 --- a/README.md +++ b/README.md @@ -77,9 +77,9 @@ When using multiple style images, the degree to which they are blended can be co - + - +

### Transfer style but not color -- cgit v1.2.3-70-g09d2