Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
ProGamerGov authored Oct 12, 2019
1 parent 7fd8127 commit 6a13d79
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 55 deletions.
27 changes: 17 additions & 10 deletions multires_content2style.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
CONTENT_IMAGE=content_image.jpg
STYLE_IMAGE=style_image.png

INTERPRETER=python
NEURAL_STYLE=neural_style.py
INTERPRETER=python3 # Replace with 'th' for neural_style.lua or 'python' for python 2
SCRIPT=neural_style.py # Replace with 'neural_style.lua' for the original neural-style

NEURAL_STYLE=$INTERPRETER
NEURAL_STYLE+=" "
NEURAL_STYLE+=$SCRIPT

# Uncomment if using pip package
#NEURAL_STYLE=neural-style


# Histogram Matching from content image to style image
python linear-color-transfer.py --target_image $STYLE_IMAGE --source_image $CONTENT_IMAGE --output_image style_colored_pca.png

$INTERPRETER $NEURAL_STYLE \
$NEURAL_STYLE \
-content_image $CONTENT_IMAGE \
-style_image style_colored_pca.png \
-init image \
Expand All @@ -17,7 +24,7 @@ $INTERPRETER $NEURAL_STYLE \
-image_size 640 \
-num_iterations 1500

$INTERPRETER $NEURAL_STYLE \
$NEURAL_STYLE \
-content_image $CONTENT_IMAGE \
-style_image style_colored_pca.png \
-init image -init_image out1.png \
Expand All @@ -26,7 +33,7 @@ $INTERPRETER $NEURAL_STYLE \
-image_size 768 \
-num_iterations 1000

$INTERPRETER $NEURAL_STYLE \
$NEURAL_STYLE \
-content_image $CONTENT_IMAGE \
-style_image style_colored_pca.png \
-init image -init_image out2.png \
Expand All @@ -35,7 +42,7 @@ $INTERPRETER $NEURAL_STYLE \
-num_iterations 500 \
-output_image out3.png \

$INTERPRETER $NEURAL_STYLE \
$NEURAL_STYLE \
-content_image $CONTENT_IMAGE \
-style_image style_colored_pca.png \
-init image -init_image out3.png \
Expand All @@ -44,7 +51,7 @@ $INTERPRETER $NEURAL_STYLE \
-num_iterations 200 \
-output_image out4.png \

$INTERPRETER $NEURAL_STYLE \
$NEURAL_STYLE \
-content_image $CONTENT_IMAGE \
-style_image style_colored_pca.png \
-init image -init_image out4.png \
Expand All @@ -53,7 +60,7 @@ $INTERPRETER $NEURAL_STYLE \
-num_iterations 200 \
-output_image out5.png \

$INTERPRETER $NEURAL_STYLE \
$NEURAL_STYLE \
-content_image $CONTENT_IMAGE \
-style_image style_colored_pca.png \
-init image -init_image out5.png \
Expand All @@ -62,7 +69,7 @@ $INTERPRETER $NEURAL_STYLE \
-num_iterations 200 \
-output_image out6.png \

$INTERPRETER $NEURAL_STYLE \
$NEURAL_STYLE \
-content_image $CONTENT_IMAGE \
-style_image style_colored_pca.png \
-init image -init_image out6.png \
Expand All @@ -71,7 +78,7 @@ $INTERPRETER $NEURAL_STYLE \
-num_iterations 200 \
-output_image out7.png

$INTERPRETER $NEURAL_STYLE \
$NEURAL_STYLE \
-content_image $CONTENT_IMAGE \
-style_image style_colored_pca.png \
-init image -init_image out7.png \
Expand Down
27 changes: 17 additions & 10 deletions multires_style2content.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
CONTENT_IMAGE=content_image.jpg
STYLE_IMAGE=style_image.png

INTERPRETER=python
NEURAL_STYLE=neural_style.py
INTERPRETER=python3 # Replace with 'th' for neural_style.lua or 'python' for python 2
SCRIPT=neural_style.py # Replace with 'neural_style.lua' for the original neural-style

NEURAL_STYLE=$INTERPRETER
NEURAL_STYLE+=" "
NEURAL_STYLE+=$SCRIPT

# Uncomment if using pip package
#NEURAL_STYLE=neural-style


# Histogram Matching from style image to content image
python linear-color-transfer.py --target_image $CONTENT_IMAGE --source_image $STYLE_IMAGE --output_image content_colored_pca.png

$INTERPRETER $NEURAL_STYLE \
$NEURAL_STYLE \
-content_image content_colored_pca.png \
-style_image $STYLE_IMAGE \
-init image \
Expand All @@ -17,7 +24,7 @@ $INTERPRETER $NEURAL_STYLE \
-image_size 640 \
-num_iterations 1500

$INTERPRETER $NEURAL_STYLE \
$NEURAL_STYLE \
-content_image content_colored_pca.png \
-style_image $STYLE_IMAGE \
-init image -init_image out1.png \
Expand All @@ -26,7 +33,7 @@ $INTERPRETER $NEURAL_STYLE \
-image_size 768 \
-num_iterations 1000

$INTERPRETER $NEURAL_STYLE \
$NEURAL_STYLE \
-content_image content_colored_pca.png \
-style_image $STYLE_IMAGE \
-init image -init_image out2.png \
Expand All @@ -35,7 +42,7 @@ $INTERPRETER $NEURAL_STYLE \
-num_iterations 500 \
-output_image out3.png \

$INTERPRETER $NEURAL_STYLE \
$NEURAL_STYLE \
-content_image content_colored_pca.png \
-style_image $STYLE_IMAGE \
-init image -init_image out3.png \
Expand All @@ -44,7 +51,7 @@ $INTERPRETER $NEURAL_STYLE \
-num_iterations 200 \
-output_image out4.png \

$INTERPRETER $NEURAL_STYLE \
$NEURAL_STYLE \
-content_image content_colored_pca.png \
-style_image $STYLE_IMAGE \
-init image -init_image out4.png \
Expand All @@ -53,7 +60,7 @@ $INTERPRETER $NEURAL_STYLE \
-num_iterations 200 \
-output_image out5.png \

$INTERPRETER $NEURAL_STYLE \
$NEURAL_STYLE \
-content_image content_colored_pca.png \
-style_image $STYLE_IMAGE \
-init image -init_image out5.png \
Expand All @@ -62,7 +69,7 @@ $INTERPRETER $NEURAL_STYLE \
-num_iterations 200 \
-output_image out6.png \

$INTERPRETER $NEURAL_STYLE \
$NEURAL_STYLE \
-content_image content_colored_pca.png \
-style_image $STYLE_IMAGE \
-init image -init_image out6.png \
Expand All @@ -71,7 +78,7 @@ $INTERPRETER $NEURAL_STYLE \
-num_iterations 200 \
-output_image out7.png

$INTERPRETER $NEURAL_STYLE \
$NEURAL_STYLE \
-content_image content_colored_pca.png \
-style_image $STYLE_IMAGE \
-init image -init_image out7.png \
Expand Down
27 changes: 17 additions & 10 deletions multires_style2content_hist.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
CONTENT_IMAGE=content_image.jpg
STYLE_IMAGE=style_image.png

INTERPRETER=python
NEURAL_STYLE=neural_style.py
INTERPRETER=python3
SCRIPT=neural_style.py

NEURAL_STYLE=$INTERPRETER
NEURAL_STYLE+=" "
NEURAL_STYLE+=$SCRIPT

# Uncomment if using pip package
#NEURAL_STYLE=neural-style


# Histogram Matching from style image to content image
python linear-color-transfer.py --target_image $CONTENT_IMAGE --source_image $STYLE_IMAGE --output_image content_colored_pca.png

$INTERPRETER $NEURAL_STYLE \
$NEURAL_STYLE \
-content_image content_colored_pca.png \
-style_image $STYLE_IMAGE \
-init image \
Expand All @@ -19,7 +26,7 @@ $INTERPRETER $NEURAL_STYLE \

python linear-color-transfer.py --target_image out1.png --source_image $STYLE_IMAGE --output_image out1_hist_colored_pca.png

$INTERPRETER $NEURAL_STYLE \
$NEURAL_STYLE \
-content_image content_colored_pca.png \
-style_image $STYLE_IMAGE \
-init image -init_image out1_hist_colored_pca.png \
Expand All @@ -30,7 +37,7 @@ $INTERPRETER $NEURAL_STYLE \

python linear-color-transfer.py --target_image out2.png --source_image $STYLE_IMAGE --output_image out2_hist_colored_pca.png

$INTERPRETER $NEURAL_STYLE \
$NEURAL_STYLE \
-content_image content_colored_pca.png \
-style_image $STYLE_IMAGE \
-init image -init_image out2_hist_colored_pca.png \
Expand All @@ -41,7 +48,7 @@ $INTERPRETER $NEURAL_STYLE \

python linear-color-transfer.py --target_image out3.png --source_image $STYLE_IMAGE --output_image out3_hist_colored_pca.png

$INTERPRETER $NEURAL_STYLE \
$NEURAL_STYLE \
-content_image content_colored_pca.png \
-style_image $STYLE_IMAGE \
-init image -init_image out3_hist_colored_pca.png \
Expand All @@ -52,7 +59,7 @@ $INTERPRETER $NEURAL_STYLE \

python linear-color-transfer.py --target_image out4.png --source_image $STYLE_IMAGE --output_image out4_hist_colored_pca.png

$INTERPRETER $NEURAL_STYLE \
$NEURAL_STYLE \
-content_image content_colored_pca.png \
-style_image $STYLE_IMAGE \
-init image -init_image out4_hist_colored_pca.png \
Expand All @@ -63,7 +70,7 @@ $INTERPRETER $NEURAL_STYLE \

python linear-color-transfer.py --target_image out5.png --source_image $STYLE_IMAGE --output_image out5_hist_colored_pca.png

$INTERPRETER $NEURAL_STYLE \
$NEURAL_STYLE \
-content_image content_colored_pca.png \
-style_image $STYLE_IMAGE \
-init image -init_image out5_hist_colored_pca.png \
Expand All @@ -74,7 +81,7 @@ $INTERPRETER $NEURAL_STYLE \

python linear-color-transfer.py --target_image out6.png --source_image $STYLE_IMAGE --output_image out6_hist_colored_pca.png

$INTERPRETER $NEURAL_STYLE \
$NEURAL_STYLE \
-content_image content_colored_pca.png \
-style_image $STYLE_IMAGE \
-init image -init_image out6_hist_colored_pca.png \
Expand All @@ -85,7 +92,7 @@ $INTERPRETER $NEURAL_STYLE \

python linear-color-transfer.py --target_image out7.png --source_image $STYLE_IMAGE --output_image out7_hist_colored_pca.png

$INTERPRETER $NEURAL_STYLE \
$NEURAL_STYLE \
-content_image content_colored_pca.png \
-style_image $STYLE_IMAGE \
-init image -init_image out7_hist_colored_pca.png \
Expand Down
Loading

0 comments on commit 6a13d79

Please sign in to comment.