フィルターのクリア

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
  2 件のコメント
Anushikha Singh
Anushikha Singh 2022 年 11 月 24 日
Sir i have added all the folders but still getting same answer please help
Walter Roberson
Walter Roberson 2022 年 11 月 24 日
I recommend that you addpath the absolute path instead of the relative path

サインインしてコメントする。


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

サインインしてコメントする。

Community Treasure Hunt

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

Start Hunting!

Translated by