Skip to content

Commit

Permalink
Minor fix for readability.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjc committed Apr 21, 2016
1 parent 7e96851 commit 2d98303
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doodle.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ def style_loss(self):
dist = self.model.tensor_outputs['nn'+l]
dist = dist.reshape((dist.shape[1], -1)) / norms.reshape((1,-1)) / layer.N.reshape((-1,1))

if args.semantic_weight:
if args.semantic_weight > 0.0:
sem_layer = self.model.network['mm'+l]
sem = self.model.tensor_outputs['mm'+l]
sem = sem.reshape((sem.shape[1], -1)) / sem_norms.reshape((1,-1)) / sem_layer.N.reshape((-1,1))
Expand Down

0 comments on commit 2d98303

Please sign in to comment.