Open TonsonP opened 8 months ago
Turn out there is some issue on this line. https://github.com/open-mmlab/mmaction2/blob/4d6c93474730cad2f25e51109adcf96824efc7a3/projects/actionclip/models/actionclip.py#L146
I can fix it by replacing it with real_labels = [x.gt_label.item() -1 for x in data_samples]
Thanks for your error report and we appreciate it a lot.
Describe the bug I encounter the error "AttributeError: 'ActionDataSample' object has no attribute 'gt_labels'" when I try to train actionclip model with nturgb_d dataset.
Reproduction
Did you make any modifications on the code or config? Did you understand what you have modified? I modified the path of label file, data_root, data_root_val and the path of annotation. Modified from "actionclip_vit-base-p16-res224-clip-pre_g8xb16_1x1x8_k400-rgb.py" file. I also modified the batch size of each loader (train, val test) as I tried to train on single gpu.
What dataset did you use? nturgb_d dataset.
Environment
python mmdet/utils/collect_env.py
to collect necessary environment information and paste it here.TorchVision: 0.15.2+cu117 OpenCV: 4.9.0 MMEngine: 0.10.3 MMAction2: 1.2.0+4d6c934 MMCV: 2.1.0 MMDetection: 3.2.0 MMPose: 1.3.1
Error traceback
Any suggestion is appreciate!