Skip to content

Commit

Permalink
Fix that appeared as vision overnight.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjc committed Apr 24, 2016
1 parent ab95b0f commit 007ba9b
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 @@ -454,7 +454,7 @@ def evaluate(self, Xn):
weights = patches.astype(np.float32)
weights[:,:-3] /= (norms_m * 3.0)
if semantic_weight: weights[:,-3:] /= (norms_s * semantic_weight)
layer.W.set_value(patches)
layer.W.set_value(weights)

nm = np.sqrt(np.sum(f[:,:-3] ** 2.0, axis=(1,), keepdims=True))
ns = np.sqrt(np.sum(f[:,-3:] ** 2.0, axis=(1,), keepdims=True))
Expand Down

0 comments on commit 007ba9b

Please sign in to comment.