https://github.com/PaddlePaddle/PaddleClas/blob/f1233c18455b8acde4fc42ab0bea575fa06daa8e/ppcls/arch/backbone/model_zoo/swin_transformer_v2.py#L449 Here the variable width_pad is not defined.