• Регистрация
redo_neonick
redo_neonick0.00
н/д
  • Написать
  • Подписаться

Загрузка нейронной сети на Raspberry Pi

Доброго времени суток. Пытаюсь разгрузить нейронную сеть на Raspberry Pi. Однако при загрузке вываливаются следующие ошибки:

Error executing command "touch -c /home/pi/MATLAB_ws/R2021a/D/diplomamag/codegen/exe/mai/*.*;make -f mai_rtw.mk all MATLAB_WORKSPACE="/home/pi/MATLAB_ws/R2021a" -C /home/pi/MATLAB_ws/R2021a/D/diplomamag/codegen/exe/mai". Details:

STDERR: In file included from /home/pi/MATLAB_ws/R2021a/D/diplomamag/codegen/exe/mai/MWConcatenationLayer.cpp:4:
/home/pi/MATLAB_ws/R2021a/D/diplomamag/codegen/exe/mai/MWConcatenationLayerImpl.hpp:44:34: error: ‘NEDepthConcatenateLayer’ is not a member of ‘arm_compute’
std::unique_ptr<arm_compute::NEDepthConcatenateLayer> m_depthConcatenateLayer;
^~~~~~~~~~~~~~~~~~~~~~~
/home/pi/MATLAB_ws/R2021a/D/diplomamag/codegen/exe/mai/MWConcatenationLayerImpl.hpp:44:34: note: suggested alternative: ‘NEConcatenateLayer’
std::unique_ptr<arm_compute::NEDepthConcatenateLayer> m_depthConcatenateLayer;
^~~~~~~~~~~~~~~~~~~~~~~
NEConcatenateLayer
/home/pi/MATLAB_ws/R2021a/D/diplomamag/codegen/exe/mai/MWConcatenationLayerImpl.hpp:44:34: error: ‘NEDepthConcatenateLayer’ is not a member of ‘arm_compute’
/home/pi/MATLAB_ws/R2021a/D/diplomamag/codegen/exe/mai/MWConcatenationLayerImpl.hpp:44:34: note: suggested alternative: ‘NEConcatenateLayer’
std::unique_ptr<arm_compute::NEDepthConcatenateLayer> m_depthConcatenateLayer;
^~~~~~~~~~~~~~~~~~~~~~~
NEConcatenateLayer
/home/pi/MATLAB_ws/R2021a/D/diplomamag/codegen/exe/mai/MWConcatenationLayerImpl.hpp:44:57: error: template argument 1 is invalid
std::unique_ptr<arm_compute::NEDepthConcatenateLayer> m_depthConcatenateLayer;
^
/home/pi/MATLAB_ws/R2021a/D/diplomamag/codegen/exe/mai/MWConcatenationLayerImpl.hpp:44:57: error: template argument 2 is invalid
make: *** [mai_rtw.mk:400: MWConcatenationLayer.cpp.o] Error 1

STDOUT: make: Entering directory '/home/pi/MATLAB_ws/R2021a/D/diplomamag/codegen/exe/mai'
g++ -c -MMD -MP -MF"MWAvgPoolingLayer.cpp.dep" -MT"MWAvgPoolingLayer.cpp.o" -fpermissive -O2 -std=c++11 -mfpu=neon -fopenmp -D_MW_MATLABTGT_ -DUSE_19_05_LIBRARY -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DMW_MATLABTARGET -D__linux__ -DARM_PROJECT -D_USE_TARGET_UDP_ -D_RUNONTARGETHARDWARE_BUILD_ -DSTACK_SIZE=200000 -DMODEL=mai -I/home/pi/MATLAB_ws/R2021a/D/diplomamag/codegen/exe/mai -I/home/pi/MATLAB_ws/R2021a/D/diplomamag -I/opt/ComputeLibrary -I/opt/ComputeLibrary/include -I/home/pi/MATLAB_ws/R2021a/C/ProgramData/MATLAB/SupportPackages/R2021a_1/toolbox/realtime/targets/linux/include -I/home/pi/MATLAB_ws/R2021a/C/ProgramData/MATLAB/SupportPackages/R2021a_1/toolbox/target/shared/svd/include -I/home/pi/MATLAB_ws/R2021a/C/ProgramData/MATLAB/SupportPackages/R2021a_1/toolbox/realtime/targets/raspi/include -I/home/pi/MATLAB_ws/R2021a/C/ProgramData/MATLAB/SupportPackages/R2021a_1/toolbox/realtime/targets/raspi/unifiedserver -I/home/pi/MATLAB_ws/R2021a/D/diplomamag/codegen/exe/mai/examples -I/home/pi/MATLAB_ws/R2021a/C/Program_Files/Polyspace/R2021a/toolbox/coder/rtiostream/src/utils -I/home/pi/MATLAB_ws/R2021a/C/Program_Files/Polyspace/R2021a/extern/include -o "MWAvgPoolingLayer.cpp.o" "/home/pi/MATLAB_ws/R2021a/D/diplomamag/codegen/exe/mai/MWAvgPoolingLayer.cpp"
g++ -c -MMD -MP -MF"MWCNNLayer.cpp.dep" -MT"MWCNNLayer.cpp.o" -fpermissive -O2 -std=c++11 -mfpu=neon -fopenmp -D_MW_MATLABTGT_ -DUSE_19_05_LIBRARY -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DMW_MATLABTARGET -D__linux__ -DARM_PROJECT -D_USE_TARGET_UDP_ -D_RUNONTARGETHARDWARE_BUILD_ -DSTACK_SIZE=200000 -DMODEL=mai -I/home/pi/MATLAB_ws/R2021a/D/diplomamag/codegen/exe/mai -I/home/pi/MATLAB_ws/R2021a/D/diplomamag -I/opt/ComputeLibrary -I/opt/ComputeLibrary/include -I/home/pi/MATLAB_ws/R2021a/C/ProgramData/MATLAB/SupportPackages/R2021a_1/toolbox/realtime/targets/linux/include -I/home/pi/MATLAB_ws/R2021a/C/ProgramData/MATLAB/SupportPackages/R2021a_1/toolbox/target/shared/svd/include -I/home/pi/MATLAB_ws/R2021a/C/ProgramData/MATLAB/SupportPackages/R2021a_1/toolbox/realtime/targets/raspi/include -I/home/pi/MATLAB_ws/R2021a/C/ProgramData/MATLAB/SupportPackages/R2021a_1/toolbox/realtime/targets/raspi/unifiedserver -I/home/pi/MATLAB_ws/R2021a/D/diplomamag/codegen/exe/mai/examples -I/home/pi/MATLAB_ws/R2021a/C/Program_Files/Polyspace/R2021a/toolbox/coder/rtiostream/src/utils -I/home/pi/MATLAB_ws/R2021a/C/Program_Files/Polyspace/R2021a/extern/include -o "MWCNNLayer.cpp.o" "/home/pi/MATLAB_ws/R2021a/D/diplomamag/codegen/exe/mai/MWCNNLayer.cpp"
g++ -c -MMD -MP -MF"MWConcatenationLayer.cpp.dep" -MT"MWConcatenationLayer.cpp.o" -fpermissive -O2 -std=c++11 -mfpu=neon -fopenmp -D_MW_MATLABTGT_ -DUSE_19_05_LIBRARY -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DMW_MATLABTARGET -D__linux__ -DARM_PROJECT -D_USE_TARGET_UDP_ -D_RUNONTARGETHARDWARE_BUILD_ -DSTACK_SIZE=200000 -DMODEL=mai -I/home/pi/MATLAB_ws/R2021a/D/diplomamag/codegen/exe/mai -I/home/pi/MATLAB_ws/R2021a/D/diplomamag -I/opt/ComputeLibrary -I/opt/ComputeLibrary/include -I/home/pi/MATLAB_ws/R2021a/C/ProgramData/MATLAB/SupportPackages/R2021a_1/toolbox/realtime/targets/linux/include -I/home/pi/MATLAB_ws/R2021a/C/ProgramData/MATLAB/SupportPackages/R2021a_1/toolbox/target/shared/svd/include -I/home/pi/MATLAB_ws/R2021a/C/ProgramData/MATLAB/SupportPackages/R2021a_1/toolbox/realtime/targets/raspi/include -I/home/pi/MATLAB_ws/R2021a/C/ProgramData/MATLAB/SupportPackages/R2021a_1/toolbox/realtime/targets/raspi/unifiedserver -I/home/pi/MATLAB_ws/R2021a/D/diplomamag/codegen/exe/mai/examples -I/home/pi/MATLAB_ws/R2021a/C/Program_Files/Polyspace/R2021a/toolbox/coder/rtiostream/src/utils -I/home/pi/MATLAB_ws/R2021a/C/Program_Files/Polyspace/R2021a/extern/include -o "MWConcatenationLayer.cpp.o" "/home/pi/MATLAB_ws/R2021a/D/diplomamag/codegen/exe/mai/MWConcatenationLayer.cpp"
make: Leaving directory '/home/pi/MATLAB_ws/R2021a/D/diplomamag/codegen/exe/mai'

------------------------------------------------------------------------
??? Build error: C++ compiler produced errors. See the Build Log for further details.
More information
Code generation failed: View Error Report

 

Что можно сделать, чтоб код загружался нормально?

Также для загрузки устанавливал дополнитьльно Visual Studio C++ 2019, как и было написано в документации.

Теги

      22.05.2021

      Ответы