RepQ-ViT icon indicating copy to clipboard operation
RepQ-ViT copied to clipboard

AttributeError: 'Attention' object has no attribute 'reduction'

Open Arthur-Ling opened this issue 2 years ago • 1 comments

When I try to run the code, there is a problem in line 117 of test_quant.py "next_module = father_module.reduction". my shell is "python test_quant.py --model deit_small --dataset /root/data/Imagenet". Is there any problem with my shell?

Arthur-Ling avatar Sep 20 '23 05:09 Arthur-Ling

Hi,

There is no problem with your shell.

If your model is deit, you should access line112 ('norm1') or 114 ('norm2'). My suggestion is to check if the model is loaded correctly, or you can try to change the version of timm (my version is 0.4.12).

zkkli avatar Sep 21 '23 01:09 zkkli