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

Invalid attributes in image-annotation-creators and image-annotation-labels #6

Open
GermanHydrogen opened this issue Dec 11, 2024 · 2 comments

Comments

@GermanHydrogen
Copy link

Attributes are added to the image-annotation-creators and image-annotation-labels which are not specified in the iFDO annotation schema. Specifically uuid in case of image-annotation-creators, and uuid and color in case of image-annotation-labels:

"image-annotation-creators":[
    {"id":"1a6f9c78-1cfb-4f30-9492-29b4002e3c80","name":"REDACTED","uuid":"1a6f9c78-1cfb-4f30-9492-29b4002e3c80"},
    {"id":"e730df82-e543-4713-8dc5-9b666b07e94f","name":"REDACTED","uuid":"e730df82-e543-4713-8dc5-9b666b07e94f"}
],

"image-annotation-labels":[
     {"id":"386951","name":"Laserpoint","uuid":"4f5bd1c5-daf0-4846bc01-949e765fe8cd","color":"e367e6"}
]

The error probably originates from here:

$ifdoAnnotator['uuid'] ?? null,

$ifdoLabel['color'] ?? null,

@mzur
Copy link
Member

mzur commented Dec 12, 2024

Hi, thanks for the report! The iFDO export adds the UUIDs to enable automatic matching of users and labels during the import. But it's true that the attributes make the schema validation fail, so this is a bug. We have to relax the schema validation somehow. It should validate only the attributes that exist in the schema and ignore any extra attributes.

@mzur mzur added the bug Something isn't working label Dec 12, 2024
@mzur mzur moved this to High Priority in BIIGLE Roadmap Dec 12, 2024
@mzur
Copy link
Member

mzur commented Dec 18, 2024

I gave this another try and it seems like I was wrong. The additional attributes do not make the schema validation fail. However, I found #7 and #8 which may be an issue during the import. Do you have image/video labels or whole frame video annotations in your iFDO?

@mzur mzur moved this from High Priority to Medium Priority in BIIGLE Roadmap Dec 18, 2024
@mzur mzur self-assigned this Dec 18, 2024
@mzur mzur removed the bug Something isn't working label Dec 19, 2024
@mzur mzur removed their assignment Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Medium Priority
Development

No branches or pull requests

2 participants