image-analogies icon indicating copy to clipboard operation
image-analogies copied to clipboard

No scaling in Tensorflow

Open vibber opened this issue 7 years ago • 0 comments

My script fails if I run in Tensorflow mode (on the cpu) and define the --a-scale=2 parameter. Without this parameter I can run. also --a-scale=1 seems to work

My script looks like this:
KERAS_BACKEND='tensorflow' THEANO_FLAGS='device=cpu' make_image_analogy.py \
    images/$PREFIX-A.jpg images/$PREFIX-Ap.jpg \
    images/$PREFIX-B.jpg out/$PREFIX-h-$HEIGHT-scale-$SCALE/$PREFIX-mrf-$MRF_VAL-ana$
    --mrf-w=$MRF_VAL --patch-size=3 --height=$HEIGHT \
    --analogy-w=$ANALOGY_VAL  --a-scale=$4\
    --vgg-weights=$VGG_WEIGHTS --output-full

vibber avatar Aug 25 '17 08:08 vibber