-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mAP nearly zero? #841
Comments
log after 10 epech: |
I think I found a possible reason. I read the function ‘compute_loss’ carefully, which describes the loss as: The problem is that there is a great imbalance between the positive and negative examples, and the calculation of the loss function does not seem to be consistent with what seems to be described in the paper. During my training, the network tends to output boxes with confidence 0, and the confidence of the prediction quickly turns negative after a few batches (it goes to 0 later after sigmod). I'm a newcomer to the field of target detection. The above is just my personal understanding, there may be deviations in the understanding of the details of calculating the loss function in the code or the paper, welcome to discuss. |
What I'm trying to do
I tried to train on the VOC2007 dataset. However, I failed. After many epochs, the mAP is zero.
What I've tried
filename.xml -> filename.txt
x = (x1 + x2) / 2
y = (y1 + y2) / 2
w = x2 - x1
h = y2 - y1
x , y, w, h = x/W, y/H, w/W, h/H
Use the default hyperparameters
Use the anchor by kmeans
Change the class from 80 to 20
Changing the feature map dimension from 3*(5+80) to 3*(5+20)
Additional context
I tried to modify the learning rate from 0.0001 to 0.001, did not work.
I tried to use sgd but not adam, did not work.
The text was updated successfully, but these errors were encountered: