Find Jobs
Hire Freelancers

Matlab Error using semanticSe​gmentation​Metrics The categorical data returned by dsResults and dsTruth must have the same categories.

$30-250 USD

已完成
已发布超过 1 年前

$30-250 USD

货到付款
I used the matlab documentation to evaluate my results from a previous trained networkbut I get this error, can someone fix it and get it to work and output results please. What I specifically need is to evaluate segmentation results from the trained network and save the image results from segmentation to add to my report. Here's the code I used Evaluating semantic segmentation results ---------------------------------------- * Selected metrics: global accuracy, class accuracy, IoU, weighted IoU, BF score. * Processed 0 [login to view URL] using semanticSegmentationMetrics>iAssertCategoricalsHaveSameCategories The categorical data returned by dsResults and dsTruth must have the same categories. my code is below dataSetDir = fullfile('LungTS','preprocessedDataset'); testImagesDir = fullfile(dataSetDir,'imagesTest'); imdReader = @(x) matRead(x); imds = imageDatastore(testImagesDir, ... 'FileExtensions','.mat','ReadFcn',imdReader); %imds = imageDatastore(testImagesDir); classNames = ["nodule" "background"]; labelIDs = [255 0]; labelReader = @(x) matRead(x); testLabelsDir = fullfile(dataSetDir,'labelsTest'); pxdsTruth = pixelLabelDatastore(testLabelsDir,classNames,labelIDs, ... 'FileExtensions','.mat','ReadFcn',labelReader); net = load('[login to view URL]'); net = [login to view URL]; pxdsResults = semanticseg(imds,net,"WriteLocation",tempdir); metrics = evaluateSemanticSegmentation(pxdsResults,pxdsTruth); [login to view URL] [login to view URL] cm = confusionchart([login to view URL], ... classNames, Normalization ='row-normalized'); [login to view URL] = 'Normalized Confusion Matrix (%)'; imageIoU = [login to view URL]; figure histogram(imageIoU) title('Image Mean IoU') [minIoU, worstImageIndex] = min(imageIoU); minIoU = minIoU(1); worstImageIndex = worstImageIndex(1); worstTestImage = readimage(imds,worstImageIndex); worstTrueLabels = readimage(pxdsTruth,worstImageIndex); worstPredictedLabels = readimage(pxdsResults,worstImageIndex); worstTrueLabelImage = im2uint8(worstTrueLabels == classNames(1)); worstPredictedLabelImage = im2uint8(worstPredictedLabels == classNames(1)); worstMontage = cat(4,worstTestImage,worstTrueLabelImage,worstPredictedLabelImage); worstMontage = imresize(worstMontage,4,"nearest"); figure montage(worstMontage,'Size',[1 3]) title(['Test Image vs. Truth vs. Prediction. IoU = ' num2str(minIoU)]) [minIoU, worstImageIndex] = min(imageIoU); minIoU = minIoU(1); worstImageIndex = worstImageIndex(1); worstTestImage = readimage(imds,worstImageIndex); worstTrueLabels = readimage(pxdsTruth,worstImageIndex); worstPredictedLabels = readimage(pxdsResults,worstImageIndex); worstTrueLabelImage = im2uint8(worstTrueLabels == classNames(1)); worstPredictedLabelImage = im2uint8(worstPredictedLabels == classNames(1)); worstMontage = cat(4,worstTestImage,worstTrueLabelImage,worstPredictedLabelImage); worstMontage = imresize(worstMontage,4,"nearest"); figure montage(worstMontage,'Size',[1 3]) title(['Test Image vs. Truth vs. Prediction. IoU = ' num2str(minIoU)]) [maxIoU, bestImageIndex] = max(imageIoU); maxIoU = maxIoU(1); bestImageIndex = bestImageIndex(1); bestTestImage = readimage(imds,bestImageIndex); bestTrueLabels = readimage(pxdsTruth,bestImageIndex); bestPredictedLabels = readimage(pxdsResults,bestImageIndex); bestTrueLabelImage = im2uint8(bestTrueLabels == classNames(1)); bestPredictedLabelImage = im2uint8(bestPredictedLabels == classNames(1)); bestMontage = cat(4,bestTestImage,bestTrueLabelImage,bestPredictedLabelImage); bestMontage = imresize(bestMontage,4,"nearest"); figure montage(bestMontage,'Size',[1 3]) title(['Test Image vs. Truth vs. Prediction. IoU = ' num2str(maxIoU)]) evaluationMetrics = ["accuracy" "iou"]; metrics = evaluateSemanticSegmentation(pxdsResults,pxdsTruth,"Metrics",evaluationMetrics); [login to view URL]
项目 ID: 34865911

关于此项目

17提案
远程项目
活跃2 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
Hi I am currently working on the semantic segmentation topic. I have been working with Matlab more than 15 years and i am totally familiar with this kind of error. Sure i can fix this issue. I'd be very happy to discuss this further and get started for you as soon as possible. Looking forward to your positive response soon :) Regards
$150 USD 在2天之内
5.0 (12条评论)
5.0
5.0
17威客以平均价$141 USD来参与此工作竞价
用户头像
Hello, good time Hope you are doing well I'm expert in MATLAB/Simulink and Python programming and by strong mathematical and statistical background, have good flexibility for solve your project. I have many experience practical and theoretical in implementation different algorithms (such as: state estimation and Kalman filter, design controller, analysis closed loop stability, signal and systems, signal processing, heuristic optimization, fuzzy logic, neural network and machine/deep learning fields). Evidence of this claim exist in the portfolio. I have read your project description and I can help you (without any plagiarism). Please send me the details of your project. Thanks for attention
$250 USD 在7天之内
5.0 (28条评论)
6.1
6.1
用户头像
hi, how are you? my major is mathematics and computer science. So I am an expert of data analysis, dimension reduction, classification, regression, prediction, object detection, biometric recognition, etc. And I am very familiar with most of all ML and DL algorithms to implement them. Thus, I have rich experience and skills that I can complete your project. Main programming skills : Python, Matlab... I will solve your project perfectly and I try very hard. please contact me.
$100 USD 在3天之内
4.7 (26条评论)
4.8
4.8
用户头像
Hello. Please send me all the MATLAB files in my inbox that you have for this project . Thankyou
$30 USD 在7天之内
4.9 (28条评论)
4.7
4.7
用户头像
Hi I am ykutu who is a matlab programmer. I have rich experiences with optimization, numerical simulations,digital signal processing, image processing, control system design,simulink and so on. I have full experiences for debugging errors in matlab and did similar task in recent days for fixing errors for 3d learning in matlab. I have read your requirement and I think I can help you best for this project. Thanks for your reading. Best regards.
$100 USD 在1天之内
5.0 (2条评论)
3.3
3.3
用户头像
Hi, Dear Employer, I have read your job post carefully. I can write clean, validated Machine Learning code and make a device-supported M. File. I have over 10+ years of experience at the ✔Machine Learning (ML) ✔Python ✔Matlab ✔C program, ✔C++ program ✔R program, ✔Algorithm ✔Statistics ✔java Please feel free and you may award me the task; I'd be happy and present you with the best products. Promise to work with 100% accuracy. Let's disuses this further via chat, and I'll your project right now. Thanks, Al. A.
$40 USD 在1天之内
3.1 (10条评论)
4.4
4.4
用户头像
Hello, I have rich experience in Matlab coding. I have read all your explanations carefully and fully understand your requirements. So I am sure I can give you correct and good results. I would appreciate it if you could contact me soon and share your project details. Thank you.
$100 USD 在1天之内
5.0 (2条评论)
2.6
2.6
用户头像
Hi, Can you send me the code file with the dataset so that I can observe the error myself? Then I'll update you with my findings. Best wishes.
$140 USD 在7天之内
5.0 (1条评论)
1.9
1.9
用户头像
Hi i am Riyadhasnat. My career Beginning as an EEE engineer. I developed an intuitive feeling about MATLAB programming. I can write clean validated MATLAB code and make a device-supported ML file. I am an expert on "✔️MATLAB,✔️Python✔️Machine learning.✔️Algorithm.✔️C# Programming,✔️C Programming, ✔️C++ Programming and I have confidence say I'm excellent for your project. Let's remark on your project within the message box. Regards riyadhasnat06.
$140 USD 在2天之内
5.0 (1条评论)
0.6
0.6
用户头像
MATLAB AND MATHEMATICS EXPERT Hello, I have carefully gone through your project description and I would like to help you with this. Inbox to discuss this. Thanks
$250 USD 在7天之内
0.0 (0条评论)
0.0
0.0
用户头像
I propose my service,for this project, I use Matlab every day, I make the project with that ect, I do the schematic..
$140 USD 在7天之内
0.0 (0条评论)
0.0
0.0
用户头像
Hello! My name is Rimsha and I am an Electrical Engineering graduate. I am well-versed in MATLAB and Simulink, and have worked on multiple MATLAB-based Image Segmentation and Machine Learning projects. Client satisfaction and quality work is what I believe in!. I have read your job description and I believe, having the required expertise, I can handle the job well. I have excelled at numerous Image Processing and Machine Learning projects. Some of my recent works include: - Ancient coins reconstruction using CGANs - Classification of clothing items in e-commerce fashion industry using Xception model - Deep ConvNets based eye cancer detection - Engine fault diagnosis using ensemble learner - Hourly electricity power prediction system developed using ML regression techniques - Voice activity detection using machine learning I am quite new to this site but have previously worked at Fiverr for 4 years. Please have a look at my portfolio since you won't find any reviews on my profile yet. Just drop a message to discuss the project further. Looking forward to work with you! Best regards, Rimsha
$100 USD 在2天之内
0.0 (0条评论)
0.0
0.0
用户头像
AI, ML DL, Computer Vision, NLP Expert Hello, thank you very much for your job posting. I am very interested in your project and think I am well suited for this role. I am a professional software engineer who have a wide range of skills in ML/DL/AI/Computer Vision. My Solid Skills are - Python, C - Machine Learning - Deep Learning - Neural Networks - Algorithm - Artificial Intelligence - Data Structures - Competitive Programming - NLP - Computer Vision(OpenCV) - PyTorch - Tensorflow - Reinforcement Learning I hope to hear from you soon to help you with your business needs. I am always open to a brief conversation or interview with you, BEST!
$175 USD 在12天之内
0.0 (0条评论)
0.0
0.0
用户头像
Hi. How are you? I am expert in Matlab. I did many optimizations, numerical simulations, image processing, control system, simulink simulations using Matlab. I am ready to start your project immediately. If you award me, you will get the wonderful results. Thanks. Best regards.
$140 USD 在7天之内
0.0 (0条评论)
0.0
0.0
用户头像
Hi, I am an Engineer by profession and have experience in MATLAB programming. I read your code and will modify it according to your need to evaluate segmentation results from the trained network and then saving the image results from segmentation. Let's have a chat to discuss details and finalize the project. Thanks
$160 USD 在3天之内
0.0 (0条评论)
3.1
3.1

关于客户

EGYPT的国旗
Alexandria, Egypt
5.0
2
付款方式已验证
会员自9月 10, 2022起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。