diff options
Diffstat (limited to 'stylize_image.sh')
| -rwxr-xr-x[-rw-r--r--] | stylize_image.sh | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/stylize_image.sh b/stylize_image.sh index 20e4ae9..fe9f707 100644..100755 --- 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 <path_to_content_image> <path_to_style_image>" - 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 <path_to_content_image> <path_to_style_image>" +# 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; |
