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

What does this code snippet in solo_head.py mean? I'm so confused. #249

Open
raintowing opened this issue Jan 23, 2024 · 0 comments
Open

Comments

@raintowing
Copy link

def points_nms(heat, kernel=2):
 # kernel must be 2
  hmax = nn.functional.max_pool2d(
  heat, (kernel, kernel), stride=1, padding=1)
  keep = (hmax[:, :, :-1, :-1] == heat).float()
  return heat * keep

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

1 participant