Skip to content

Commit

Permalink
Update OV-XAI in all notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
negvet committed Sep 17, 2024
1 parent 406f894 commit aeb4e05
Show file tree
Hide file tree
Showing 4 changed files with 319 additions and 309 deletions.
85 changes: 27 additions & 58 deletions notebooks/explainable-ai-1-basic/explainable-ai-1-basic.ipynb

Large diffs are not rendered by default.

21 changes: 12 additions & 9 deletions notebooks/explainable-ai-2-deep-dive/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,25 @@ Example: Saliency map for `flat-coated retriever` class for MobileNetV3 classifi

The tutorial consists of the following steps:

- Run explainer in Auto-mode
- Run explainer in `Auto` mode
- Specify preprocess and postprocess functions
- Run explainer in White-box mode
- Run explainer in `WHITEBOX` mode
- Insert XAI branch to use updated model in own pipelines
- Run explainer in Black-box mode
- Run explainer in `BLACKBOX` mode
- Advanced: add label names and use them to save saliency maps instead of label indexes

These are explainable AI algorithms supported by OpenVINO XAI :
These are explainable AI algorithms supported by OpenVINO XAI:

| Domain | Task | Type | Algorithm | Links |
|-----------------|----------------------|-----------|---------------------|-------|
| Computer Vision | Image Classification | White-Box | ReciproCAM | [arxiv](https://arxiv.org/abs/2209.14074) / [src](https://github.com/openvinotoolkit/openvino_xai/blob/releases/1.0.0/openvino_xai/methods/white_box/recipro_cam.py) |
| | | | VITReciproCAM (for transformer models) | [arxiv](https://arxiv.org/abs/2310.02588) / [src](https://github.com/openvinotoolkit/openvino_xai/blob/releases/1.0.0/openvino_xai/methods/white_box/recipro_cam.py) |
| | | | ActivationMap | experimental / [src](https://github.com/openvinotoolkit/openvino_xai/blob/releases/1.0.0/openvino_xai/methods/white_box/activation_map.py) |
| | | Black-Box | RISE | [arxiv](https://arxiv.org/abs/1806.07421v3) / [src](https://github.com/openvinotoolkit/openvino_xai/blob/releases/1.0.0/openvino_xai/methods/black_box/rise.py) |
| | Object Detection | | ClassProbabilityMap | experimental / [src](https://github.com/openvinotoolkit/openvino_xai/blob/releases/1.0.0/openvino_xai/methods/white_box/det_class_probability_map.py) |
| Computer Vision | Image Classification | White-Box | ReciproCAM | [arxiv](https://arxiv.org/abs/2209.14074) / [src](https://github.com/openvinotoolkit/openvino_xai/blob/develop/openvino_xai/methods/white_box/recipro_cam.py) |
| | | | VITReciproCAM | [arxiv](https://arxiv.org/abs/2310.02588) / [src](https://github.com/openvinotoolkit/openvino_xai/blob/develop/openvino_xai/methods/white_box/recipro_cam.py) |
| | | | ActivationMap | experimental / [src](https://github.com/openvinotoolkit/openvino_xai/blob/develop/openvino_xai/methods/white_box/activation_map.py) |
| | | Black-Box | AISEClassification | [src](https://github.com/openvinotoolkit/openvino_xai/blob/develop/openvino_xai/methods/black_box/aise/classification.py) |
| | | | RISE | [arxiv](https://arxiv.org/abs/1806.07421v3) / [src](https://github.com/openvinotoolkit/openvino_xai/blob/develop/openvino_xai/methods/black_box/rise.py) |
| | Object Detection | White-Box | ClassProbabilityMap | experimental / [src](https://github.com/openvinotoolkit/openvino_xai/blob/develop/openvino_xai/methods/white_box/det_class_probability_map.py) |
| | | Black-Box | AISEDetection | [src](https://github.com/openvinotoolkit/openvino_xai/blob/develop/openvino_xai/methods/black_box/aise/detection.py) |


### Installation Instructions

Expand Down
385 changes: 227 additions & 158 deletions notebooks/explainable-ai-2-deep-dive/explainable-ai-2-deep-dive.ipynb

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit aeb4e05

Please sign in to comment.