pytorchvideo.data.Hmdb51 returns action class name instead of action class number according to this code. In the train_step, batch["label"] returns action class name, not class index. Therefore, I cannot use them to calculate loss and accuracy. I am not sure if it is designed for some reason. May I know how to fix it, please? Many thanks!
Instructions To Reproduce the Issue:
Follow video_classification_example and change the dataset to HMDB51.
🐛 Bugs / Unexpected behaviors
pytorchvideo.data.Hmdb51
returns action class name instead of action class number according to this code. In the train_step,batch["label"]
returns action class name, not class index. Therefore, I cannot use them to calculate loss and accuracy. I am not sure if it is designed for some reason. May I know how to fix it, please? Many thanks!Instructions To Reproduce the Issue:
Follow video_classification_example and change the dataset to HMDB51.
git diff
) or code you wrote --- Nope