I am confused that the code seems to use the original rel_label class indexes as each group's label. I was thought that the relation labels should be rearranged by new order.
However, self.pre_group_matrix seems to directly assign 0-5 to 51 predicates, without descending order before assignment.
Thanks for your question!
We indeed rearrange the rel_label class indexes in maskrcnn_benchmark/data/datasets/visual_genome.py [Line 389-392]. We hope you find it helpful.
Hi, appreciate your work!
I am confused that the code seems to use the original rel_label class indexes as each group's label. I was thought that the relation labels should be rearranged by new order.
However,
self.pre_group_matrix
seems to directly assign 0-5 to 51 predicates, without descending order before assignment.