yitu-opensource / T2T-ViT

ICCV2021, Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Local variable 'input' referenced before assignment

laohanlin opened this issue · comments

I want to run your code. But no matter how I modify it, timm keeps telling me local variable 'input' referenced before assignment. As is shown in the picture:
image

What's the timm version you used?
Please installl timm 3.4.0 by: pip install timm==0.3.4