当前位置:网站首页>Replicate swin on Huawei ascend910_ transformer
Replicate swin on Huawei ascend910_ transformer
2022-07-25 16:51:00 【Flower boy】
One 、 Running environment
Hardware platform
[ma-user swin_transformer]$export -p
declare -x AICPU_FLAG="1"
declare -x ANACONDA_DIR="/home/ma-user/anaconda3"
declare -x ASCEND_AICPU_PATH="/usr/local/Ascend/nnae/latest/"
declare -x ASCEND_HOME="/usr/local/Ascend"
declare -x ASCEND_OPP_PATH="/usr/local/Ascend/nnae/latest/opp"
declare -x CONDA3_DIR="/opt/conda/bin"
declare -x CONDA_DIR="/opt/conda"
declare -x CPU_LIMIT="24.0"
declare -x CREDENTIAL_PROFILES_FILE="/etc/secret-volume/credentials"
declare -x FWK_PYTHON_PATH="/usr/local/Ascend/nnae/latest/fwkacllib/python/site-packages"
declare -x GATEWAY_IMAGE_ID=""
declare -x HOME="/home/ma-user"
declare -x JUPYTER_SERVER_ROOT="/home/ma-user/work"
declare -x LD_LIBRARY_PATH="/usr/lib/aarch64-linux-gnu/hdf5/serial:/usr/local/Ascend/nnae/latest/fwkacllib/lib64:/usr/local/Ascend/driver/lib64/common/:/usr/local/Ascend/driver/lib64/driver:/usr/lib64"
declare -x LESSOPEN="||/usr/bin/lesspipe.sh %s"
declare -x LINES="40"
declare -x LOGNAME="ma-user"
declare -x ME_TBE_PLUGIN_PATH="/usr/local/Ascend/opp/framework/built-in/tensorflow/"
declare -x MINICONDA_DIR="/opt/conda"
declare -x MODELARTS_SDK_VERSION="1.1.5"
declare -x MS_BUILD_PROCESS_NUM="20"
declare -x MindsporeEnv="MindSpore"
declare -x NOTEBOOK_IMAGE_NAME="notebook2.0-mul-kernel-arm-ascend-cp37"
declare -x NOTEBOOK_IMAGE_VERSION="3.3.3-c79-20220121"
declare -x OLDPWD="/home/ma-user"
declare -x OPTION_EXEC_EXTERN_PLUGIN_PATH="/usr/local/Ascend/fwkacllib/lib64/plugin/opskernel/libfe.so:/usr/local/Ascend/fwkacllib/lib64/plugin/opskernel/libaicpu_plugin.so:/usr/local/Ascend/fwkacllib/lib64/plugin/opskernel/librts_engine.so:/usr/local/Ascend/fwkacllib/lib64/plugin/opskernel/libge_local_engine.so"
declare -x PATH="/home/ma-user/.local/bin:/home/ma-user/bin:/usr/local/Ascend/nnae/latest/fwkacllib/ccec_compiler/bin:/usr/local/Ascend/nnae/latest/fwkacllib/bin:/home/ma-user/anaconda3/envs/MindSpore/bin:/opt/conda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/ma-user/modelarts/ma-cli/bin"
declare -x PWD="/home/ma-user/work/swin_transformer"
declare -x PYTHONPATH="/usr/local/Ascend/nnae/latest/fwkacllib/python/site-packages:/usr/local/Ascend/nnae/latest/fwkacllib/python/site-packages/auto_tune.egg:/usr/local/Ascend/nnae/latest/fwkacllib/python/site-packages/schedule_search.egg:/usr/local/Ascend/tfplugin/latest/tfplugin/python/site-packages:/usr/local/Ascend/nnae/latest/opp/op_impl/built-in/ai_core/tbe"
declare -x RANK_TABLE_FILE="/user/config/nbstart_hccl.json"
declare -x REGION_NAME="cn-central-231"
declare -x SHELL="/bin/bash"
declare -x SOC_VERSION="Ascend910A"
declare -x TBE_IMPL_PATH="/usr/local/Ascend/nnae/latest/opp/op_impl/built-in/ai_core/tbe"
declare -x TERM="xterm"
declare -x TF_PLUGIN_PKG="/usr/local/Ascend/tfplugin/latest/tfplugin/python/site-packages"
declare -x TensorflowEnv="TensorFlow-1.15.0"
declare -x USER="ma-user"
declare -x USERNAME="ma-user"
declare -x XDG_CACHE_HOME="/home/ma-user/.cache"
Two 、 Related introduction
2.1 Related courses
2.2 Error code query
E60011 The value of some attributes must be within the specified range
2.3 Atlas Hardware product compatibility query
Calculate product compatibility query assistant
3、 ... and 、 Key steps
swin_transformer gitee Warehouse
ModelZoo:Swin-Transformer
Blogger's code :https://gitee.com/lljyoyo1995/swin_transformer
3.1 Resource usage
CPU Occupancy 
Resource usage 
NPU Occupancy 
NPU power 
Four 、FAQ
Q:MindSpore Version inconsistency results in API Interface error
[ERROR] MD(67033,fffea5ffb1e0,python):2022-07-20-17:51:48.714.669 [mindspore/ccsrc/minddata/dataset/util/task.cc:67] operator()] Task: MapOp(ID:3) - thread(281469171773920) is terminated with err msg: Unexpected error. map operation: [Decode] failed. Decode: invalid input shape, only support 1D input, got rank: 3
Line of code : 42
File : /home/jenkins/agent-working-dir/workspace/[email protected]/mindspore/mindspore/ccsrc/minddata/dataset/kernels/image/decode_op.cc
self.saved_output_shapes = runtime_getter[0].GetOutputShapes()
RuntimeError: Unexpected error. map operation: [Decode] failed. Decode: invalid input shape, only support 1D input, got rank: 3
Line of code : 42
File : /home/jenkins/agent-working-dir/workspace/[email protected]/mindspore/mindspore/ccsrc/minddata/dataset/kernels/image/decode_op.cc
The reason for the error :
MindSpore After the update , Part of the interface
terms of settlement :
1. Modify the package guide method
import mindspore.dataset.vision as vision
Change it to
import mindspore.dataset.vision.c_transforms as vision
import mindspore.dataset.vision.py_transforms as pvision
2. modify ToPIL() Interface
vision.ToPIL()
Change it to
pvision.ToPIL()
# Comment out Decode()
# vision.Decode()
[ERROR] MD(71480,fffe5f7fe1e0,python):2022-07-20-18:01:47.677.517 [mindspore/ccsrc/minddata/dataset/util/task.cc:67] operator()] Task: MapOp(ID:3) - thread(281467988992480) is terminated with err msg: Unexpected error. map operation: [Normalize] failed. Normalize: number of channels does not match the size of mean and std vectors, got channels: 224, size of mean:3
Line of code : 810
File : /home/jenkins/agent-working-dir/workspace/[email protected]/mindspore/mindspore/ccsrc/minddata/dataset/kernels/image/image_utils.cc
The reason for the error :
Normalize() Interface error
MindSpore Quick version update , The inconsistency between the old and new interfaces makes the source code unable to run
terms of settlement :
1. Modify the package guide method
import mindspore.dataset.transforms as C
import mindspore.dataset.vision as vision
Change it to
import mindspore.dataset.transforms.c_transforms as C
import mindspore.dataset.vision.c_transforms as vision
import mindspore.dataset.vision.py_transforms as pvision
2. modify Normalize() Interface
vision.Normalize(mean=mean, std=std)
Change it to
pvision.Normalize(mean=mean, std=std)
边栏推荐
- 什么是链游系统开发?链游系统开发如何制作
- 【数学建模绘图系列教程】二、折线图的绘制与优化
- Chain game development ready-made version chain game system development detailed principle chain game source code delivery
- LVGL 7.11 tileview界面循环切换
- 多租户软件开发架构
- 2D 语义分割——DeepLabV3plus 复现
- 3D 语义分割——Scribble-Supervised LiDAR Semantic Segmentation
- Rosen's QT journey 99 QML table control tableview
- slf4j 搭配 log4j2 处理日志
- 152. Product maximum subarray
猜你喜欢

为什么 4EVERLAND 是 Web 3.0 的最佳云计算平台

Breakthrough in core technology of the large humanoid Service Robot Walker x

文字翻译软件-文字批量翻译转换器免费

7. Dependency injection

【知识图谱】实践篇——基于医疗知识图谱的问答系统实践(Part3):基于规则的问题分类

【小5聊】公众号排查<该公众号提供的服务出现故障,请稍后>

Mindoc makes mind map
![[mathematical modeling and drawing series tutorial] II. Drawing and optimization of line chart](/img/73/2b6fe0cf69fa013894abce331e1386.png)
[mathematical modeling and drawing series tutorial] II. Drawing and optimization of line chart

吴恩达逻辑回归2

easyui修改以及datagrid dialog form控件使用
随机推荐
首页门户分类查询
Various useful forms of London Silver K-line chart
Slf4j and log4j2 process logs
7.依赖注入
月薪1万在中国是什么水平?答案揭露残酷的收入真相
伦敦银K线图的各种有用形态
Ilssi certification | the course of Six Sigma DMAIC
win10设备管理认不到GTX1080Ti 显示设备的解决办法
ReBudget:通过运行时重新分配预算的方法,在基于市场的多核资源分配中权衡效率与公平性
Budget report ppt
【读书会第13期】+FFmpeg开源项目
What are the free low code development platforms?
Emqx cloud update: more parameters are added to log analysis, which makes monitoring, operation and maintenance easier
Two methods of importing sqllite table from MySQL
Doget and dopost
【小5聊】公众号排查<该公众号提供的服务出现故障,请稍后>
MySQL视图
[MySQL] takes you to the database
EasyUI DataGrid control uses
Breakthrough in core technology of the large humanoid Service Robot Walker x