summaryrefslogtreecommitdiff
path: root/neural_style.py
diff options
context:
space:
mode:
authorCameron <cysmith1010@gmail.com>2016-10-08 16:21:04 -0700
committerGitHub <noreply@github.com>2016-10-08 16:21:04 -0700
commit10a0a44bc97cc8b62faa7c20f717de0b52dfcda0 (patch)
treeac1c90ac1c6d90e88f7b0c88346282c78255f810 /neural_style.py
parent9af705f1786cdc157cf2bfb09aa8f95dab3f1122 (diff)
Fixed 'style_mask' error
Diffstat (limited to 'neural_style.py')
-rw-r--r--neural_style.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/neural_style.py b/neural_style.py
index 74badee..0db8403 100644
--- a/neural_style.py
+++ b/neural_style.py
@@ -528,7 +528,7 @@ def stylize(content_img, style_imgs, init_img, frame=None):
net = build_vgg19(content_img)
# style loss
- if args.has_style_mask:
+ if args.style_mask:
L_style = sum_masked_style_losses(sess, net, style_imgs)
else:
L_style = sum_style_losses(sess, net, style_imgs)