Skip to content

Update function#15

Open
Shanlans wants to merge 1 commit intowaspinator:masterfrom
Shanlans:master
Open

Update function#15
Shanlans wants to merge 1 commit intowaspinator:masterfrom
Shanlans:master

Conversation

@Shanlans
Copy link
Copy Markdown

@Shanlans Shanlans commented Dec 6, 2018

If one mask file contain several same class area. This modification can fix the problem

If one mask file contain several same class area. This modification can fix the problem
@Shanlans
Copy link
Copy Markdown
Author

Shanlans commented Dec 6, 2018

I think if we generate the single class annotation files from mask file of each image, it will have some problem. I need to calculate the distance and any other information to apart each item which belongs to the same class from the current class layer ( the mask already was one hot operation). I think this case your code doesn't support. So I did some little change. Please check it, I am so glad to get some feedback from you.

@solauky
Copy link
Copy Markdown

solauky commented Nov 18, 2019

Hello, there is a problem with this update: when an uncommented image appears, the error is "TypeError: 'NoneType' object is not iterable".Annotation_info, segmentation_id = create_annotation_info(segmentation_id, image_id, category_info, binary_mask, image.size, tolerance=2), none will be returned to annotation_info, segmentation_id at the same time.

@solauky
Copy link
Copy Markdown

solauky commented Nov 20, 2019

Another problem is area. The same class shares a total area

1 similar comment
@solauky
Copy link
Copy Markdown

solauky commented Nov 20, 2019

Another problem is area. The same class shares a total area

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

Successfully merging this pull request may close these issues.

2 participants