deephs_fruit icon indicating copy to clipboard operation
deephs_fruit copied to clipboard

getting low accuracy in Avocado

Open divya9118 opened this issue 2 years ago • 3 comments

I followed the same steps to train model, didnt made any changes. But I am getting 0.9 to 1 training accuracy but test accuracy is about 0.25 for Avocado. Can you explain why is it so. And how can I solve this problem.

divya9118 avatar Feb 08 '24 17:02 divya9118

Low test accuracy means your model is overfitting. Please check the training procedure and monitor the training / validation loss. Depending on the used library version, the training procedure can differ. Also, a different batch size or the usage of multiple GPUs require adaptations of the training.

leonvarga avatar Feb 09 '24 09:02 leonvarga

see for all other categories, accuracy is approx same as given in research paper. The problem persist only while training Avacado for VIS camera type(in both ripeness and firmness category). Even SVM and KNN are also having low accuracy for Avacodo (VIS type). It seems like there is some issue with VIS data for Avocado.

divya9118 avatar Feb 09 '24 10:02 divya9118

Hi,

sorry, without your whole setup, it is really hard to check where this error is coming from.

The avocado recordings were used for a couple of other works, like https://github.com/cogsys-tuebingen/hsi_benchmark, and we did not experience any errors.

You can check which samples are not correctly classified and try to check whether you see some pattern. Still, it seems your training is overfitting.

Especially, the avocado VIS training should be really stable.

leonvarga avatar Feb 10 '24 09:02 leonvarga