Detr: Implementation not consistent with the original paper?

Created on 3 Jun 2020  路  2Comments  路  Source: facebookresearch/detr

Hi.
In original paper, it mentioned in Sec. 4 that

To optimize for AP, we override the prediction of these slots with the second highest scoring class, using the corresponding con dence. This improves AP by 2 points compared to filtering out empty slots.

But I didn't see any corresponding code in this repo. Did I miss something or it is not implement here?

Thank you.

question

Most helpful comment

Hello,
It is implemented in the post-processor, namely here: https://github.com/facebookresearch/detr/blob/b7b62c080d34f76c0069a63afcfb9093213d235c/models/detr.py#L265-L266

As you can see, the softmax is taken over all the classes, but the max itself excludes the last element (no-object).

I believe I have answered your question, as such I'm closing this. Let me know if something is still unclear.

All 2 comments

Hello,
It is implemented in the post-processor, namely here: https://github.com/facebookresearch/detr/blob/b7b62c080d34f76c0069a63afcfb9093213d235c/models/detr.py#L265-L266

As you can see, the softmax is taken over all the classes, but the max itself excludes the last element (no-object).

I believe I have answered your question, as such I'm closing this. Let me know if something is still unclear.

@alcinos
This is exactly what I was looking for.
Thank you very much.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

debparth picture debparth  路  7Comments

tomek-l picture tomek-l  路  4Comments

rardz picture rardz  路  5Comments

m-klasen picture m-klasen  路  8Comments

jeromen7 picture jeromen7  路  8Comments