open-mmlab / mmaction2

OpenMMLab's Next Generation Video Understanding Toolbox and Benchmark
https://mmaction2.readthedocs.io
Apache License 2.0
4.31k stars 1.25k forks source link

[Bug] A IndexError is encountered when training a portion of the ntu60 dataset #2770

Open dbzqyyy opened 11 months ago

dbzqyyy commented 11 months ago

Branch

main branch (1.x version, such as v1.0.0, or dev-1.x branch)

Prerequisite

Environment

sys.platform: linux Python: 3.8.18 (default, Sep 11 2023, 13:40:15) [GCC 11.2.0] CUDA available: True numpy_random_seed: 2147483648 GPU 0,1,2,3: Tesla T4 CUDA_HOME: None GCC: gcc (GCC) 8.3.1 20190311 (Red Hat 8.3.1-3) PyTorch: 1.9.1+cu111 PyTorch compiling details: PyTorch built with:

TorchVision: 0.10.1+cu111 OpenCV: 4.8.1 MMEngine: 0.8.4 MMAction2: 1.2.0+ MMCV: 2.0.1 MMDetection: 3.2.0 MMPose: 1.2.0

Describe the bug

hi,I downloaded the ntu60 dataset and took a video of s001 (len=332). And the skeletal point annotations of the S001 video (len=380, including the 48 annotations of the 'S001C003P008R002A005' video) are saved. Only the dataset path has been changed, and the other training parameters are the defaults. But there were /anaconda3/envs/mmcv/lib/python3.8/site-packages/decord/video_reader.py", line 132, in _validate_indices raise IndexError('Out of bound indices: {}'.format(indices[indices >= self._num_frame])) Snipaste_2023-12-25_11-40-12

Reproduces the problem - code sample

python tools/train.py 'configs/skeleton/posec3d/rgbpose_conv3d/rgbpose_conv3d.py'

Reproduces the problem - command or script

No response

Reproduces the problem - error message

No response

Additional information

No response