You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mask = grad_rollout(input_tensor) causes TypeError: __call__() missing 1 required positional argument: 'category_index' although the README suggests it is optional (If category_index isn't specified, Attention Rollout will be used, otherwise Gradient Attention Rollout will be used.). Is this a mistake or should I pass None for example?
Thanks a lot and best regards
Verena
The text was updated successfully, but these errors were encountered:
Hi,
I tried to run the example from the README.md and I run into the following issues:
grad_rollout = VITAttentionGradRollout(model, discard_ratio=0.9, head_fusion='max')
causesTypeError: __init__() got an unexpected keyword argument 'head_fusion'
.mask = grad_rollout(input_tensor)
causesTypeError: __call__() missing 1 required positional argument: 'category_index'
although the README suggests it is optional (If category_index isn't specified, Attention Rollout will be used, otherwise Gradient Attention Rollout will be used.
). Is this a mistake or should I passNone
for example?Thanks a lot and best regards
Verena
The text was updated successfully, but these errors were encountered: