【2023·CANN训练营第一季】ResNet50图片分类应用——准备环境
环境要求
-
操作系统及架构:
CentOS 7.6 x86_64
、CentOS aarch64
、Ubuntu 18.04 x86_64
、EulerOS x86
、EulerOS aarch64
-
编译器:
g++
或aarch64-linux-gnu-g++
-
芯片:
Ascend 310
、Ascend 310P
、Ascend 910
-
python
版本及依赖的库:python3.7.5
、Pillow
库 -
已在环境上部署昇腾AI软件栈,并配置对应的的环境变量,请参见Link中对应版本的CANN安装指南。
配置CANN基础环境变量和Python环境变量,请参见Link。
HwHiAiUser
下~/Ascend/ascend-toolkit/set_env.sh
export ASCEND_TOOLKIT_HOME=/home/HwHiAiUser/Ascend/ascend-toolkit/latest
export LD_LIBRARY_PATH=${ASCEND_TOOLKIT_HOME}/lib64:${ASCEND_TOOLKIT_HOME}/lib64/plugin/opskernel:${ASCEND_TOOLKIT_HOME}/lib64/plugin/nnengine:$LD_LIBRARY_PATH
export PYTHONPATH=${ASCEND_TOOLKIT_HOME}/python/site-packages:${ASCEND_TOOLKIT_HOME}/opp/op_impl/built-in/ai_core/tbe:$PYTHONPATH
export PATH=${ASCEND_TOOLKIT_HOME}/bin:${ASCEND_TOOLKIT_HOME}/compiler/ccec_compiler/bin:$PATH
export ASCEND_AICPU_PATH