From 826905abc95f76e16226128ff11e6fa6dafe992d Mon Sep 17 00:00:00 2001 From: jules Date: Wed, 18 Jul 2018 19:13:04 +0200 Subject: script edits --- stylize_image.sh | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) mode change 100644 => 100755 stylize_image.sh (limited to 'stylize_image.sh') diff --git a/stylize_image.sh b/stylize_image.sh old mode 100644 new mode 100755 index 20e4ae9..fe9f707 --- a/stylize_image.sh +++ b/stylize_image.sh @@ -3,27 +3,27 @@ set -e cr=`echo $'\n.'` cr=${cr%.} -if [ "$#" -le 1 ]; then - echo "Usage: bash stylize_image.sh " - exit 1 -fi - -echo "" -read -p "Did you install the required dependencies? [y/n] $cr > " dependencies - -if [ "$dependencies" != "y" ]; then - echo "Error: Requires dependencies: tensorflow, opencv2 (python), scipy" - exit 1; -fi - -echo "" -read -p "Do you have a CUDA enabled GPU? [y/n] $cr > " cuda - -if [ "$cuda" != "y" ]; then - device='/cpu:0' -else +#if [ "$#" -le 1 ]; then +# echo "Usage: bash stylize_image.sh " +# exit 1 +#fi +# +#echo "" +#read -p "Did you install the required dependencies? [y/n] $cr > " dependencies +# +#if [ "$dependencies" != "y" ]; then +# echo "Error: Requires dependencies: tensorflow, opencv2 (python), scipy" +# exit 1; +#fi +# +#echo "" +#read -p "Do you have a CUDA enabled GPU? [y/n] $cr > " cuda +# +#if [ "$cuda" != "y" ]; then +# device='/cpu:0' +#else device='/gpu:0' -fi +#fi # Parse arguments content_image="$1" @@ -41,4 +41,4 @@ python neural_style.py \ --style_imgs "${style_filename}" \ --style_imgs_dir "${style_dir}" \ --device "${device}" \ ---verbose; \ No newline at end of file +--verbose; -- cgit v1.2.3-70-g09d2