happyharrycn / actionformer_release

Code release for ActionFormer (ECCV 2022)
MIT License
415 stars 77 forks source link

#Class Num or #Class Num + 1 #113

Closed ddz16 closed 1 year ago

ddz16 commented 1 year ago

Hello, I noticed that the output of the classification head in the code is #Class Num categories, but some code comments also mention #Class Num+1. So I have the following two questions:

  1. Is it #Class Num or #Class Num+1?
  2. If it is #Class Num, how do we differentiate the background class?
happyharrycn commented 1 year ago

The output dimension of the classification head is #Class, denoting #Class-way binary classification. Each dimension here represents the probability of one category. There is no need to encode the background class in this K-way classification setting.

I can't recall where this #Class Num+1 was mentioned in our comments. If you can pin down the code, we will take a look.

ddz16 commented 1 year ago

Thanks for your reply. The #Class Num+1 comments are in the meta_archs.py: image and image

tzzcl commented 1 year ago

These are old and wrong comments, we will remove/correct these comments shortly. Thank you for pointing it out.