validation function and input size change for mask r cnn
1 回表示 (過去 30 日間)
古いコメントを表示
Hello, i have a question about mask r cnn training process.
thanksfully, i could try to use the mask r cnn to detect particles in this images because this site explained about mask r cnn in matlab.
https://kr.mathworks.com/help/vision/ug/example-InstanceSegmentationUsingMaskRCNNDeepLearningExample.html?searchHighlight=mask%20r%20cnn&s_tid=srchtitle_mask%20r%20cnn_1
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1116355/image.bmp)
However, during the result of training does not works well and i realized that the site does not mentioned about validation during the process. is there any way to use validation?
Also, as you can see, my images are gray scale. Can i used the image as n*m*1 not n*m*3 as RGB? it looks RGB needs much high computation power.
Thanks.
0 件のコメント
回答 (2 件)
Avadhoot
2023 年 9 月 21 日
Hi Seon Je Kim,
I have inferred from your first question that you want to use validation in the training process of the mask RCNN. There is a way to do that. You could just specify the parameter called as ValidationData in the trainingOptions function for your neural network. The validation data could be a table, a datastore or even a cell array.
To obtain the neural network that performed best on the validation dataset, you can set the OutputNetwork parameter to "best-validation-loss".
More information regarding validation can be found on the following resource : Validation in trainingOptions
Regarding your second question, if the images are all grayscale, you can reduce the number of channels from 3 to 1. You could specify that in the code as:
imageSizeTrain = [n m 1];
Before making this change, please ensure that you won't lose valuable information by converting the images to grayscale, as it could adversely affect the model's performance.
Hope this helps.
Regards,
Avadhoot
0 件のコメント
Ashish Uthama
2023 年 10 月 13 日
Thanks for posting the image!
You could try the Cellpose add-on and explore different models to see if some of the canned ones get you close to the results you want. Else, you could use these labels as a starting point to train your own cellpose model.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1510249/image.png)
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Deep Learning for Image Processing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!