f92dd441311594f80ee5be4a2d2a1d6b21b96c59,examples/visualize_layer.py,,visualize_random,#Any#Any#,9
Before Change
// Visualize couple random categories from imagenet.
indices = np.random.permutation(1000)[:num_categories]
images = [visualize_activation(model, layer_idx, filter_indices=idx,
text=utils.get_imagenet_label(idx),
max_iter=500) for idx in indices]
// Easily stitch images via `utils.stitch_images`
stitched = utils.stitch_images(images)
if show:
After Change
// Visualize couple random categories from imagenet.
indices = np.random.permutation(1000)[:num_categories]
images = []
for idx in indices:
img = visualize_activation(model, layer_idx, filter_indices=idx, max_iter=500)
img = utils.draw_text(img, utils.get_imagenet_label(idx))
images.append(img)
// Easily stitch images via `utils.stitch_images`
stitched = utils.stitch_images(images)
if show:
plt.axis("off")
plt.imshow(stitched)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 17
Instances
Project Name: raghakot/keras-vis
Commit Name: f92dd441311594f80ee5be4a2d2a1d6b21b96c59
Time: 2017-05-07
Author: ragha@outlook.com
File Name: examples/visualize_layer.py
Class Name:
Method Name: visualize_random
Project Name: raghakot/keras-vis
Commit Name: f92dd441311594f80ee5be4a2d2a1d6b21b96c59
Time: 2017-05-07
Author: ragha@outlook.com
File Name: examples/visualize_layer.py
Class Name:
Method Name: visualize_random
Project Name: raghakot/keras-vis
Commit Name: f92dd441311594f80ee5be4a2d2a1d6b21b96c59
Time: 2017-05-07
Author: ragha@outlook.com
File Name: examples/visualize_layer.py
Class Name:
Method Name: visualize_multiple_same_filter
Project Name: raghakot/keras-vis
Commit Name: f92dd441311594f80ee5be4a2d2a1d6b21b96c59
Time: 2017-05-07
Author: ragha@outlook.com
File Name: examples/visualize_layer.py
Class Name:
Method Name: visualize_multiple_categories