Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

[Example] Gradcam consolidation in tutorial #13255

Merged
merged 8 commits into from
Nov 15, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
exclude_patterns = ['3rdparty', 'build_version_doc', 'virtualenv', 'api/python/model.md', 'README.md']
exclude_patterns = ['3rdparty', 'build_version_doc', 'virtualenv', 'api/python/model.md', 'README.md', 'tutorial_utils']

# The reST default role (used for this markup: `text`) to use for all documents.
#default_role = None
Expand Down
3 changes: 2 additions & 1 deletion docs/tutorials/vision/cnn_visualization.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ from matplotlib import pyplot as plt
import numpy as np

gradcam_file = "gradcam.py"
base_url = "https://raw.githubusercontent.com/indhub/mxnet/cnnviz/example/cnn_visualization/{}?raw=true"
base_url = "https://github.com/apache/incubator-mxnet/tree/master/docs/tutorial_utils/vision/cnn_visualization/{}?raw=true"
mx.test_utils.download(base_url.format(gradcam_file), fname=gradcam_file)
import gradcam
```
Expand Down Expand Up @@ -182,6 +182,7 @@ Next, we'll write a method to get an image, preprocess it, predict category and
2. **Guided Grad-CAM:** Guided Grad-CAM shows which exact pixels contributed the most to the CNN's decision.
3. **Saliency map:** Saliency map is a monochrome image showing which pixels contributed the most to the CNN's decision. Sometimes, it is easier to see the areas in the image that most influence the output in a monochrome image than in a color image.


```python
def visualize(net, img_path, conv_layer_name):
orig_img = mx.img.imread(img_path)
Expand Down
17 changes: 0 additions & 17 deletions example/cnn_visualization/README.md

This file was deleted.

110 changes: 0 additions & 110 deletions example/cnn_visualization/gradcam_demo.py

This file was deleted.

90 changes: 0 additions & 90 deletions example/cnn_visualization/vgg.py

This file was deleted.