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

question about output #2

Open
lzhengchun opened this issue Dec 23, 2020 · 4 comments
Open

question about output #2

lzhengchun opened this issue Dec 23, 2020 · 4 comments

Comments

@lzhengchun
Copy link

How can I interpret your output? I noticed that the output has three channels.

I assume this is not object localization.

@liponan
Copy link
Owner

liponan commented Dec 24, 2020

Hello! They are confidence score, y_offset, x_offset.
Let's say at pixel [20, 40], these three channels give you 0.75, 0.12, 0.26 (after Sigmoid activation).
That means that it predicts there is a peak with 0.75 confidence at (40.26, 20.12).
Note that by "offset" it means the relative offset within a pixel.

@lzhengchun
Copy link
Author

Thanks for your response! what kind of processing are further required on the model output to get the peak location with sub-pixel precision ? for example, a peak is composed with multiple connected bright pixels, i assume the model with give high confidence. do you use connected component labeling and use the maxima point as peak?

@liponan
Copy link
Owner

liponan commented Jan 14, 2021

Sorry for my delayed response. I use non-maximum suppression (NMS) to remove false positives, i.e. those pixels connected to the true central pixel. The idea is we sort detected peaks by their confidence score, then add them to a new list one by one. If the peak to be added is within a certain cutoff distance to any other peaks already in the new list, then we drop it.

@lzhengchun
Copy link
Author

Sorry for my delayed response. I use non-maximum suppression (NMS) to remove false positives, i.e. those pixels connected to the true central pixel. The idea is we sort detected peaks by their confidence score, then add them to a new list one by one. If the peak to be added is within a certain cutoff distance to any other peaks already in the new list, then we drop it.

oh I see. thanks

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