Siamese network with multyple inputs error in deep netwrok toolbox

2 次查看(过去 30 天)
in matlab getting error of Too many inputs and in matlab online our net is working but MatConvnet its not working giving the error
Error using mex
/MATLAB Drive/MATLAB/matconvnet-1.0-beta25/matlab/src/bits/impl/imread_libjpeg.cpp:22:10: fatal error: jpeglib.h: No such file or directory
#include <jpeglib.h>
^~~~~~~~~~~
compilation terminated.
for the first problem of the offline matlab is ,maby the problem is that our cell array that has input of picture and picture and label
by matlab thouth as 3rd argument meaning the label is 3rd argument .any suggestions please good friends?

回答(1 个)

prabhat kumar sharma
Hi Dimitrii,
I understand that you are facing an issue with the trainNetwork() function and the MatConvNet library.
Regarding your first issue of "Too many input arguments" please check if you are using the correct syntax for the input data type. The trainNetwork() function has multiple syntax options that allow for different input types.
For more information on this issue, you can refer below answer: https://mathworks.com/matlabcentral/answers/499762-too-many-input-arguments
As for the second error, it is likely occurring because the compiler cannot locate the "jpeglib.h" file. You need to check the path of the file and ensure that it is correctly added. This error can be resolved by properly configuring the library dependencies.
I hope it helps!

类别

Help CenterFile Exchange 中查找有关 Image Data Workflows 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by