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

Does "instances_attributes_val2020" annotation has wrong ids? #5

Open
janmejaya-nanda opened this issue Sep 17, 2021 · 3 comments
Open

Comments

@janmejaya-nanda
Copy link

Annotation for "attributes" in "instances_attributes_val2020" json looks something like,
'attributes': [{'id': 234, 'name': 'no opening', 'supercategory': 'opening type', 'level': 1, 'taxonomy_id': 'att000242_00'}, {'id': 281, 'name': 'plastic', 'supercategory': 'non-textile material type', 'level': 1, 'taxonomy_id': 'att000298_00'},........, {'id': 340, 'name': 'plant', 'supercategory': 'textile pattern', 'level': 1, 'taxonomy_id': 'att000363_00'}]
there is a jump in ID from 234 to 281 and it ends on 340.
I am assuming there are some wrong annotations, correct me if I am wrong.
if these annotations are correct, then how one can inference attribute from category? where to get relation between category and attribute?
In case of inferencing done through fashionpedia detection, How one can extract attribute values from the saved check point?

@KMnP
Copy link
Collaborator

KMnP commented Sep 18, 2021

Hi, thanks for the question.
These attributes ids, like COCO dataset, are not consecutive. We initially had more attributes but deleted some due to lack of annotated instances or difficult to annotate.

In the proposed detection model, we treat attribute and category classification as two separate tasks, thus the model cannot inference attribute directly from category. But it can predict attributes given the image.

Please let me know if you have any other questions

@janmejaya-nanda
Copy link
Author

Thanks for a quick reply. I have a couple of follow-up questions

  1. these checkpoints provides attributes (as logits) of the shape (# category, 294). can I safely assume logits at index 235 belongs to id=281?
  2. As the training data(of Kaggel) suggests, one class in an image can have multiple attributes. So, there is some sort of thresholding needs to be done on top of attribute scores than the argmax?

@KMnP
Copy link
Collaborator

KMnP commented Jan 8, 2023

Hi, sorry for the late reply. Did you find the answers already?

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

2 participants