MindSpore XAI Installation
System Requirements
OS: EulerOS-aarch64, CentOS-aarch64, CentOS-x86, Ubuntu-aarch64 or Ubuntu-x86
Device: Ascend 910 or GPU CUDA 10.1, 11.1
Python 3.7.5 or above
MindSpore 1.4 or above
Installing by pip
Download the .whl
package from MindSpore XAI download page and install with pip
.
pip install mindspore_xai-{version}-py3-none-any.whl
Installing from Source Code
Download source code from gitee.com:
git clone https://gitee.com/mindspore/xai.git -b r1.5
Install the dependency python modules:
cd xai pip install -r requirements.txt
Install the XAI module from source code:
python setup.py install
Optionally, you may build a
.whl
package for installation without step 3:bash package.sh pip install output/mindspore_xai-{version}-py3-none-any.whl
Installation Verification
Upon successful installation, importing ‘mindspore_xai’ module in Python will cause no error:
import mindspore_xai
print(mindspore_xai.__version__)
Note
MindInsight is an optional tool for visualizing the model explanation from XAI. Please refer to Installation for more details.