I am getting the error in loading the Yolov4 model in matlab 2021a . i am using the load function to load the yolov4.mat file but still it gives the warnings .

조회 수: 16 (최근 30일)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: Unable to load instances of class mishLayer into a heterogeneous array. The definition of
mishLayer could be missing or contain an error. Default objects will be substituted.
> In Untitled2 (line 3)
Warning: While loading an object of class 'nnet.cnn.LayerGraph':
Array indices must be positive integers or logical values.
> In Untitled2 (line 3)
Warning: While loading an object of class 'dlnetwork':
Dot indexing is not supported for variables of this type.
> In Untitled2 (line 3)
Undefined function 'detectComplexYOLOv4' for input arguments of type 'dlnetwork'.
Error in Untitled2 (line 24)
[bboxes, scores, labels] = detectComplexYOLOv4(net, img, anchors, classNames, executionEnvironment);

답변 (2개)

yanqi liu
yanqi liu 2021년 12월 10일
yes,sir,may be use
addpath('src');
to config toolbox

Luke Hubbard
Luke Hubbard 2022년 12월 2일
I was getting a similar error trying to load a previously trained custom network:
"Warning: Unable to load instances of class <some layer> into a heterogeneous array."
I was trying to load right after starting up matlab. I found that once I changed directories to the working directory where I trained the network, it loaded just fine.
  댓글 수: 2
Walter Roberson
Walter Roberson 2022년 12월 2일
편집: Walter Roberson 2022년 12월 2일
At the time that you load the network, then the class definition for that kind of network needs to be on the MATLAB path. It is not important that you are in the same directory that you trained the network, just that the class definition can be reached.
In particular if you use MATLAB Compiler, you might find that you need to add the appropriate @ folder to the list of folders to include -- or else that you use a %#function pragma naming the class so that the compiler knows to include the class definition

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Kernel Creation from MATLAB Code에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by