Skip to content

Commit

Permalink
Auto-creating default semantic map for style if non-existant. Closes
Browse files Browse the repository at this point in the history
…#42.
  • Loading branch information
alexjc committed Mar 13, 2016
1 parent 098b850 commit a660f1f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doodle.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,10 @@ def __init__(self):
self.content_map_original = np.zeros(self.content_img_original.shape[:2]+(1,))
self.semantic_weight = 0.0

if self.style_map_original is None:
self.style_map_original = np.zeros(self.style_img_original.shape[:2]+(1,))
self.semantic_weight = 0.0

if self.content_img_original is None:
self.content_img_original = np.zeros(self.content_map_original.shape[:2]+(3,))
args.content_weight = 0.0
Expand Down

0 comments on commit a660f1f

Please sign in to comment.