Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not load 'yolov8x.mat' correctly (model not Initialized). #4

Open
cenerd opened this issue Apr 13, 2024 · 1 comment
Open

Could not load 'yolov8x.mat' correctly (model not Initialized). #4

cenerd opened this issue Apr 13, 2024 · 1 comment

Comments

@cenerd
Copy link

cenerd commented Apr 13, 2024

When the file 'yolov8x.mat' was downloaded and placed in the same directory with ' yolov8n.mat', I tried to load the v8x.mat file as did to v8n.mat. No error messege shown. However, when I double clicked the variable 'det' (det = data.yolov8Net) in the workspace, it showed empty attributes and det.Initialized is 0. While for v8n.mat, it shows 231x1 Layers, and det.Initialized is 1.

When '[bboxes, scores, labelIds] = detectYOLOv8(det, I, numClasses, executionEnvironment); ' was called as presented in the README.md, matlab produce the following error messege (in Chinese):

此类型的变量不支持使用点进行索引。
出错 dlnetwork/get.Layers (第 250 行)
internalLayers(this.TopologicalOrder) = iRevertFunctional(this.PrivateNetwork.OriginalLayers);
出错 detectYOLOv8 (第 20 行)
inputSize = dlnet.Layers(1).InputSize;
出错 main (第 32 行)
[bboxes, scores, labelIds] = detectYOLOv8(det, I, numClasses, executionEnvironment);

@viakkala
Copy link
Member

viakkala commented Apr 22, 2024

The error message you encountered suggests that the model has not been loaded, leading to the message "Variables of this type do not support indexing with dots." This is because the YOLO v8 variable hasn't been loaded in your case. You mentioned successfully loading v8x.mat without any error messages. Did you encounter any warning messages during this process?

Could you try running runInference.m from the main directory, but replace 'yolov8n' with 'yolov8x' on line 11?

Additionally, could you specify which version of MATLAB you are using?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants