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 #26

Closed
hchoi71 opened this issue Jan 11, 2021 · 2 comments
Closed

OHEM #26

hchoi71 opened this issue Jan 11, 2021 · 2 comments

Comments

@hchoi71
Copy link

hchoi71 commented Jan 11, 2021

Hello, Yude.

Thanks for sharing this great work!

I have one question about table 1. You mentioned that you reported results in table 1 with the training set. Then, it seems OHEM process should be involved with train_SEAM.py. Is that correct? Does your repo include OHEM process? How can I use OHEM in your code?

Thanks

@YudeWang
Copy link
Owner

Hi @hchoi71 ,
OHEM means the topk selection here.

loss_ecr1 = torch.mean(torch.topk(tensor_ecr1.view(ns,-1), k=(int)(21*hs*ws*0.2), dim=-1)[0])

@hchoi71
Copy link
Author

hchoi71 commented Jan 12, 2021

Oh I see. Thanks @YudeWang

@hchoi71 hchoi71 closed this as completed Jan 12, 2021
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

2 participants