You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TorchVision: 0.15.2+cu117
OpenCV: 4.8.1
MMCV: 1.3.12
MMCV Compiler: GCC 9.4
MMCV CUDA Compiler: not available
MMAction2: 0.15.0+db018fb
You may add addition that may be helpful for locating the problem, such as
How you installed PyTorch [e.g., pip, conda, source] pip
Other environment variables that may be related (such as $PATH, $LD_LIBRARY_PATH, $PYTHONPATH, etc.)
Error traceback
If applicable, paste the error traceback here.
A placeholder for traceback.
Bug fix
If you have already identified the reason, you can provide the information here. If you are willing to create a PR to fix it, please also leave a comment here and that would be much appreciated!
The text was updated successfully, but these errors were encountered:
Thanks for your great work.
Could I ask why some incompatibleKeys appear?
Checklist
Yes, I have searched it.
Yes
Describe the bug
I find the pretrained model is mismatch. Please see the log information as below.
mmaction - INFO - load model from: Video-Swin-Transformer/checkpoints/2d/swin_base_patch4_window7_224_22k.pth
2023-10-09 20:48:15,037 - mmaction - INFO - _IncompatibleKeys(missing_keys=['layers.0.blocks.0.attn.relative_position_index', 'layers.0.blocks.1.attn.relative_position_index', 'layers.1.blocks.0.attn.relative_position_index', 'layers.1.blocks.1.attn.relative_position_index', 'layers.2.blocks.0.attn.relative_position_index', 'layers.2.blocks.1.attn.relative_position_index', 'layers.2.blocks.2.attn.relative_position_index', 'layers.2.blocks.3.attn.relative_position_index', 'layers.2.blocks.4.attn.relative_position_index', 'layers.2.blocks.5.attn.relative_position_index', 'layers.2.blocks.6.attn.relative_position_index', 'layers.2.blocks.7.attn.relative_position_index', 'layers.2.blocks.8.attn.relative_position_index', 'layers.2.blocks.9.attn.relative_position_index', 'layers.2.blocks.10.attn.relative_position_index', 'layers.2.blocks.11.attn.relative_position_index', 'layers.2.blocks.12.attn.relative_position_index', 'layers.2.blocks.13.attn.relative_position_index', 'layers.2.blocks.14.attn.relative_position_index', 'layers.2.blocks.15.attn.relative_position_index', 'layers.2.blocks.16.attn.relative_position_index', 'layers.2.blocks.17.attn.relative_position_index', 'layers.3.blocks.0.attn.relative_position_index', 'layers.3.blocks.1.attn.relative_position_index'], unexpected_keys=['head.weight', 'head.bias'])
2023-10-09 20:48:15,037 - mmaction - INFO - => loaded successfully 'Video-Swin-Transformer/checkpoints/2d/swin_base_patch4_window7_224_22k.pth'
Reproduction
yes
hmdb51
Environment
PYTHONPATH=${PWD}:$PYTHONPATH python mmaction/utils/collect_env.py
to collect necessary environment information and paste it here.sys.platform: linux
Python: 3.11.3 (main, Apr 19 2023, 23:54:32) [GCC 11.2.0]
CUDA available: True
GPU 0: NVIDIA RTX A6000
CUDA_HOME: /usr/local/cuda
NVCC: Build cuda_11.7.r11.7/compiler.31294372_0
GCC: gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
PyTorch: 2.0.1+cu117
PyTorch compiling details: PyTorch built with:
TorchVision: 0.15.2+cu117
OpenCV: 4.8.1
MMCV: 1.3.12
MMCV Compiler: GCC 9.4
MMCV CUDA Compiler: not available
MMAction2: 0.15.0+db018fb
$PATH
,$LD_LIBRARY_PATH
,$PYTHONPATH
, etc.)Error traceback
If applicable, paste the error traceback here.
Bug fix
If you have already identified the reason, you can provide the information here. If you are willing to create a PR to fix it, please also leave a comment here and that would be much appreciated!
The text was updated successfully, but these errors were encountered: