SwinTransformer / Video-Swin-Transformer

This is an official implementation for "Video Swin Transformers".
https://arxiv.org/abs/2106.13230
Apache License 2.0
1.42k stars 199 forks source link

Error found in the code about shift_size calculation #76

Closed emergencyd closed 2 years ago

emergencyd commented 2 years ago

https://github.com/SwinTransformer/Video-Swin-Transformer/blob/db018fb8896251711791386bbd2127562fd8d6a6/mmaction/models/backbones/swin_transformer.py#L400

As self.blocks is turning off shift every 2 blocks, this calculation is inappropriate to be shared for all the blocks.