Borrar filtros
Borrar filtros

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 visualizaciones (últimos 30 días)
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);

Respuestas (2)

yanqi liu
yanqi liu el 10 de Dic. de 2021
yes,sir,may be use
addpath('src');
to config toolbox

Luke Hubbard
Luke Hubbard el 2 de Dic. de 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 comentarios
Walter Roberson
Walter Roberson el 2 de Dic. de 2022
Editada: Walter Roberson el 2 de Dic. de 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

Iniciar sesión para comentar.

Community Treasure Hunt

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

Start Hunting!

Translated by