[CVPR 2021] Official PyTorch implementation for Transformer Interpretability Beyond Attention Visualization, a novel method to visualize classifications by Transformer based networks.
MIT License
1.75k
stars
232
forks
source link
Trying this with vit-pytorch and hugging face transformer #56
AttributeError: 'ViT' object has no attribute 'relprop'
hugging face:
model = ViTForImageClassification.from_pretrained('google/vit-base-patch16-224').cuda()
AttributeError: 'ViTForImageClassification' object has no attribute 'relprop'
AttributeError: 'ViT' object has no attribute 'relprop'
hugging face:
model = ViTForImageClassification.from_pretrained('google/vit-base-patch16-224').cuda() AttributeError: 'ViTForImageClassification' object has no attribute 'relprop'