Effacer les filtres
Effacer les filtres

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 vues (au cours des 30 derniers jours)
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);

Réponses (2)

yanqi liu
yanqi liu le 10 Déc 2021
yes,sir,may be use
addpath('src');
to config toolbox
  2 commentaires
Anushikha Singh
Anushikha Singh le 24 Nov 2022
Sir i have added all the folders but still getting same answer please help
Walter Roberson
Walter Roberson le 24 Nov 2022
I recommend that you addpath the absolute path instead of the relative path

Connectez-vous pour commenter.


Luke Hubbard
Luke Hubbard le 2 Déc 2022
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 commentaires
Walter Roberson
Walter Roberson le 2 Déc 2022
Modifié(e) : Walter Roberson le 2 Déc 2022
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

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by