Skip to content

Use GradCam in ViT with visualization problem, the attention map not show #140

@Like-wind-fly

Description

@Like-wind-fly

python tools/vis_cam.py 1.jpg D:\code\lesion-classification\Awesome-Backbones\logs\VisionTransformer\2024-12-31-15-32-22\vit_base_p16_224.py --save-path logs\VisionDTransformer\2024-12-31-15-32-22\VisionTransformer_gradcam_wild.jpg --vit-like --target-layers backbone.layers[-1].ln1
image

Could you give me a solution or explanation, thank you so much.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions