Yet-Another-EfficientDet-Pytorch icon indicating copy to clipboard operation
Yet-Another-EfficientDet-Pytorch copied to clipboard

train problem

Open betterhalfwzm opened this issue 4 years ago • 3 comments

I'm sorry to bother you again. When i train custom dataset, After several eopch, the score reached the highest level, and then began to decline,how can i solve it? Example of pictures: image image @zylo117

betterhalfwzm avatar Apr 16 '20 02:04 betterhalfwzm

it's overfitting

zylo117 avatar Apr 16 '20 02:04 zylo117

it's overfitting

How to solve over fitting in your code? And there are a lot of negative samples in my data set, Does this affect? How should I adjust the code to add negative sample for training? @zylo117

betterhalfwzm avatar Apr 16 '20 02:04 betterhalfwzm

@betterhalfwzm try to add some early stopping and save the best model on validation loss (split the data in train / val / test ).

heitorrapela avatar Oct 07 '21 20:10 heitorrapela