99 Star 800 Fork 1.4K

MindSpore / models

 / 详情

【众智-山东大学】【MindSpore框架】refineDet模型mxbase构建失败

ACCEPTED
Question
创建于  
2022-07-01 10:18

进入代码infer/mxbase目录执行bash build.sh 构建报错如下

root@ba344b43fd75:/data1/MindSpore/RefineDet/infer/mxbase# bash build.sh
Set ASCEND_VERSION to the default value: ascend-toolkit/latest
ARCH_PATTERN is set to the default value: ./
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /data1/MindSpore/RefineDet/infer/mxbase/build
Scanning dependencies of target refinedet
[ 33%] Building CXX object CMakeFiles/refinedet.dir/main.cpp.o
[ 66%] Building CXX object CMakeFiles/refinedet.dir/refinedetDetection/refinedetDetection.cpp.o
/data1/MindSpore/RefineDet/infer/mxbase/refinedetDetection/refinedetDetection.cpp: In member function 'APP_ERROR refinedetDetection::cvmat_to_tensorbase(const cv::Mat&, MxBase::TensorBase&)':
/data1/MindSpore/RefineDet/infer/mxbase/refinedetDetection/refinedetDetection.cpp:431:71: error: 'YUV444_RGB_WIDTH_NU' is not a member of 'MxBase'
     const uint32_t dataSize = imageMat.cols * imageMat.rows * MxBase::YUV444_RGB_WIDTH_NU;
                                                                       ^~~~~~~~~~~~~~~~~~~
/data1/MindSpore/RefineDet/infer/mxbase/refinedetDetection/refinedetDetection.cpp:440:47: error: 'YUV444_RGB_WIDTH_NU' is not a member of 'MxBase'
     std::vector<uint32_t> shape = {1, MxBase::YUV444_RGB_WIDTH_NU, static_cast<uint32_t>(imageMat.rows),
                                               ^~~~~~~~~~~~~~~~~~~
/data1/MindSpore/RefineDet/infer/mxbase/refinedetDetection/refinedetDetection.cpp:441:72: error: could not convert '{1, <expression error>, ((uint32_t)((int)imageMat.cv::Mat::rows)), ((uint32_t)((int)imageMat.cv::Mat::cols))}' from '<brace-enclosed initializer list>' to 'std::vector<unsigned int>'
                                    static_cast<uint32_t>(imageMat.cols)};
                                                                        ^
CMakeFiles/refinedet.dir/build.make:75: recipe for target 'CMakeFiles/refinedet.dir/refinedetDetection/refinedetDetection.cpp.o' failed
make[2]: *** [CMakeFiles/refinedet.dir/refinedetDetection/refinedetDetection.cpp.o] Error 1
CMakeFiles/Makefile2:75: recipe for target 'CMakeFiles/refinedet.dir/all' failed
make[1]: *** [CMakeFiles/refinedet.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

二、软件版本:
--CANN 版本: (CANN 5.0.4.B065)
--MindSpore 版本: mindspore 1.6.1
--Python 版本: Python 3.7.5
--操作系统版本 (e.g., Ubuntu 18.04):Ubuntu 18.04

评论 (3)

马飞飞 创建了Question

Please assign maintainer to check this issue.
请为此issue分配处理人。
@fangwenyi @chengxiaoli

Please add labels (comp or sig), also you can visit https://gitee.com/mindspore/community/blob/master/sigs/dx/docs/labels.md to find more.
为了让代码尽快被审核,请您为Pull Request打上 组件(comp)或兴趣组(sig) 标签,打上标签的PR可直接推送给责任人进行审核。
更多的标签可以查看https://gitee.com/mindspore/community/blob/master/sigs/dx/docs/labels.md
以组件相关代码提交为例,如果你提交的是data组件代码,你可以这样评论:
//comp/data
当然你也可以邀请data SIG组来审核代码,可以这样写:
//sig/data
另外你还可以给这个PR标记类型,例如是bugfix或者是特性需求:
//kind/bug or //kind/feature
恭喜你,你已经学会了使用命令来打标签,接下来就在下面的评论里打上标签吧!

fangwenyi 任务状态TODO 修改为ACCEPTED
fangwenyi 负责人设置为施博

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(3)
1
https://gitee.com/mindspore/models.git
git@gitee.com:mindspore/models.git
mindspore
models
models

搜索帮助

344bd9b3 5694891 D2dac590 5694891