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

overlapping between annotations #44

Open
trs96 opened this issue May 13, 2021 · 3 comments
Open

overlapping between annotations #44

trs96 opened this issue May 13, 2021 · 3 comments

Comments

@trs96
Copy link

trs96 commented May 13, 2021

Hey!
I saw that using detection2panoptic is only possible if there are ne overlappings in the annotations.
Since I have some overlappings in my annoations, how to get rid of them?
Any suggestion? :)

I'm struggling with this problem already for a while..

@cydal
Copy link

cydal commented Apr 20, 2022

@trs96 did you ever find a solution to this problem?

@domef
Copy link

domef commented Nov 8, 2022

You can change line 69 of converters/detection2panoptic_coco_format.py with continue so it will only skip the samples with overlaps instead of crashing.

raise Exception("Segments for image {} overlap each other.".format(img_id))

@achbogga
Copy link

achbogga commented Dec 8, 2022

@cydal @domef @trs96 Another thing is to comment out the lines 69 and 68. This will however overwrite the pixels with the last class label.

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

4 participants