-
Notifications
You must be signed in to change notification settings - Fork 486
feat(writer): Allow to write additional data to coco_annotations.json #1209
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
base: main
Are you sure you want to change the base?
Conversation
This change enhances the COCO annotation generation by: - Adding support for custom properties in annotations - Integrating instance attributes into annotation creation - Improving code readability with better formatting
|
For contributing to BlenderProc you need to sign our Contributor License Agreement. As an individual please sign CLA_individuals.pdf, as a company please sign CLA_entities.pdf and send it to [email protected] |
|
For contributing to BlenderProc you need to sign our Contributor License Agreement. As an individual please sign CLA_individuals.pdf, as a company please sign CLA_entities.pdf and send it to [email protected] |
| instances = np.delete(instances, np.where(instances == 0)) | ||
| for inst in instances: | ||
| if inst in instance_2_category_map: | ||
| inst_attributes = next((item for item in inst_attribute_map if item["idx"] == inst), None) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we maybe exclude idx and name here? They should be part of the coco annotations already anyway right?








Additional custom properties from
map_bykeys other then, e.g.category_idorinstances, inblenderproc.renderer.enable_segmentation_outputare included in the annotation info.