MATLAB: My project is leaf disease detection,but the masked image contains many unwanted blobs which are of no use for our analysis process. I have to remove them.so which code is suitable
color segmentationdisease detectionimage processingImage Processing Toolboximage segmentationleafleaf disease detection
if true
% code
end<<
<<
if true
% code
end>>
>>
Best Answer
Try the Color Thresholder app on the Apps tab of the tool ribbon.
I think the model is not overfitting. The validation loss normally decreases during the initial phase of training, as does the training loss. However, when the network begins to overfit the data, the loss on the validation set typically begins to rise and clearly there is not much difference between the training loss and validation loss. You can refer to Improve Shallow Neural Network Generalization and Avoid Overfitting for more understanding of Overfitting and steps to avoid overfitting.
The Validation accuracy can be higher than the training (mini-batch) accuracy, one possible situtation is when the network has layers that behave differently during prediction than during training for example, dropout layers. It also depends on how the training & validation data are split.
Best Answer