Skip to content
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

OHEM implement #27

Open
MissDores opened this issue Nov 7, 2018 · 3 comments
Open

OHEM implement #27

MissDores opened this issue Nov 7, 2018 · 3 comments

Comments

@MissDores
Copy link

MissDores commented Nov 7, 2018

I have implemented the tensorflow code of OHEM according to your code. Several inputs are tested to make the output of my implementation the same with yours. I wonder wether you train your model using OHEM at the beginning of your training or finetune with OHEM after the first phase training finished.
In my case, I trained with OHEM at the begining, and the problem is that, my loss stayed fluctant and no trend of decending. Can you give me some suggestions? Thank you very much!

@PkuRainBow
Copy link
Collaborator

I would recommend to you try our code base.

@lxtGH
Copy link

lxtGH commented Nov 22, 2018

@MissDores Hi, I met same problem with you. But I fintuned the model with OHEM, the loss didn't decend. Have you found the reasons?

@MissDores
Copy link
Author

Sorry, I haven't found the reasons until now. One odd thing is that when I trained from begining, though the training loss remained almost the same, the accuracy on the test set seems increasing and the final results are not higher than the situation without my implementation of OHEM. I am sure there is noing wrong with my dataset. @lxtGH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants