Skip to content

Commit

Permalink
Remove normalization
Browse files Browse the repository at this point in the history
  • Loading branch information
hvy committed Jan 20, 2017
1 parent 02dcb1e commit 3caeeca
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions visualize.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,7 @@ def visualize_layer_activations(model, x, layer_idx):
if model._device_id and model._device_id >= 0:
a = cupy.asnumpy(a)

# Normalize and rescale to [0, 255]
a -= a.mean()
a /= (a.std() + 1e-5)
a *= 0.1
# Rescale to [0, 255]
a -= a.min()
a /= a.max()
a *= 255
Expand Down

0 comments on commit 3caeeca

Please sign in to comment.