happyharrycn / actionformer_release

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

Why replace the predicted labels? #95

Closed bhosalems closed 1 year ago

bhosalems commented 1 year ago

Why do we have the below replacement in the evaluate.py?

make the label ids consistent

    preds['label'] = preds['label'].replace(self.activity_index) 

What happens if the validation or the test dataset does not have all the possible labels?

tzzcl commented 1 year ago

We follow the original ActivityNet evaluation code to replace the original string with the index to eval predictions. For your case, I think you should manually build the activity_index with the union of your all data.

bhosalems commented 1 year ago

thanks for the reply.