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

"Finally, we retrieve the object boundary by using the outer edge of the union of the object’s local contours" #6

Open
Fabulous-ya opened this issue May 31, 2024 · 0 comments

Comments

@Fabulous-ya
Copy link

Hi,author!
Which line code can implement this fuction described in your paper?

meta = out["meta" + str(i)]
contour_center = meta["contour_center"][()]
r = meta["r"][()]
seg_gt = to_np(self.label_all[i]["seg_mask"][0])
U = self.U[:, : self.cfg.dim]
U_t = (U.T).copy()
c = r @ U / self.cfg.max_dist
r_ap = c @ U_t * self.cfg.max_dist

I meet the same problem that the contours are separated local contours, not the outer edge of the union of the object’s local contours, after I have run the entire pipline on sbd training set and got the display_approx.

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