Closed jihwan722 closed 8 months ago
Hi @jihwan722
I tried reproducing the error at my end. However, I was unable to do so.
Can you please help me with the following details: a. Your current MATLAB version? b. Your current Operating System? c. Output of your ver command.
a. matlab 2023b update 7 b. win11 c.
Additionally, the same error occurs in an environment using the same MATLAB version with Ubuntu 20.04 operating system and in an environment with MATLAB version 2022b on Windows 10.
@jihwan722 Can you install "Deep Learning Toolbox Converter for ONNX Model Format" support package and try out the inference?
@viakkala Thank you. It's working well now!!!
Other versions of YOLOv8 do not produce errors when running runinference.m. However, when I run the YOLOv8x version, I encounter the following error. Is there a way to solve this?
--error--
Warning: Unable to load instances of class nnet.onnx.layer.VerifyBatchSizeLayer into a heterogeneous array. The definition of nnet.onnx.layer.VerifyBatchSizeLayer could be missing or contain an error. Default objects will be substituted.
Error in dlnetwork.loadobj (line 992) net = dlnetwork(in.LayerGraph, exampleInputs{:}, 'Initialize', in.Initialized);
Error in runInference (line 13) data = load('yolov8x.mat');
Error in dlnetwork/get.Layers (line 231) val = getExternalLayers(this.PrivateNetwork);
Error in detectYOLOv8 (line 20) inputSize = dlnet.Layers(1).InputSize;
Error in runInference (line 18) [bboxes, scores, labelIds] = detectYOLOv8(detector, I, numClasses, executionEnvironment);