-
Notifications
You must be signed in to change notification settings - Fork 264
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
Training Issue #50
Comments
@JoeHEZHAO |
@Seanlinx Thanks so much for replying. Please allow me rephrase your words, just to make sure I understand right. For classification, we are using label 0 and 1 to find valid index and calculate the loss. And for bbx regression, we are using label -1 and 1 to get valid index and the loss. Am I correct ? According to the paper, the total loss would be cls_loss + 0.5 * bbx_loss ? |
@JoeHEZHAO Yes, you're right. |
@Seanlinx Thanks so much for your help. But another problem just come out. |
Sorry for the bother. Previous question has been solved by normalize input images with ImageNet's paremeter (mean=(0.485, 0.456, 0.406), std=(0.229, 0.224, 0.225)). I could get reasonable loss now. Seems like ConvNet works better on data in (0, 1) range. However, when I train classification and regression together, the loss would never go down to 0.22 and 0.015 as your code trained. Though when I train them separately, I can get low loss as yours. May I ask again, are you just adding two loss together then do back propagation ? Is there else should be done for loss calculating ? |
Hello Lin
I have a couple of questions about training the network with data generated by gen_pnet_data.py
Noted that the data/mtcnn/imglists/train_12.txt mix both positive and negative images and their groundtruth, I am wondering how do you deal with negative bounding box, which is 0 ?
For example, the regression result is [0.1, 0.2, 0.3, 0.4] and negative bbx ground truth is [0]. Should I make it [0,0,0,0] ? Or should I training bbx only with positive and parts data ? However, since we are training the classification and bbx at the same time, I am guessing we should training all data at the same time, right ?
Best
HZ
The text was updated successfully, but these errors were encountered: