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

About sequence formulation for instance segmentation #16

Open
volgachen opened this issue Jul 28, 2022 · 3 comments
Open

About sequence formulation for instance segmentation #16

volgachen opened this issue Jul 28, 2022 · 3 comments

Comments

@volgachen
Copy link

Excuse me,
I am interested in Pix2Seq, and trying to better understand it.
I wonder how instance segmentation targets are formulated for training. To be more specific,

  • How to convert coco annotations into target sequences? (especially those with more than one polygon)
  • Do the starting point and direction matter?
  • Is there any design handling the varying length of target sequences?

It would be nice if you can provide these details at your convenience.
Thank you!

@chentingpc
Copy link
Collaborator

How to convert coco annotations into target sequences? (especially those with more than one polygon)

we use a separator to indicate different polygon.s

Do the starting point and direction matter?

we randomly pick the starting point, and follow the same direction as in the annotation.

Is there any design handling the varying length of target sequences?

We use ending token to indicate the end of the sequence. We simply truncate the sequence if it turns out to be longer than predefined max seq len (which is rare and happens when the annotation is very fine-grained).

Hope this helps.

@volgachen
Copy link
Author

Thank you for detailed response. I have got it now!
It's really surprising that such a simple solution achieves these good results.

@gg22mm
Copy link

gg22mm commented Nov 14, 2023

How to do it, in more detail?

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