Skip to content

Understanding attention maps #7

Description

@LLusvarghi

Hi @SimonGer

Wonderful work!
I am trying to understand the attention maps provided by the model (here) to get some insights on the learned driving policy. In this regard, I have a couple of questions:

  1. Attention maps provide one attention score for each embedding token, right?
  2. How does the mapping between the input batch data and the embedding tokens work? I would like to know at which index of the embedding array I can find the tokenized version of the different input data elements (e.g., ego speed, surrounding objects, etc.), so that I can later extract the corresponding attention score.

Ultimately, my goal is to extract the attention score assigned by the model to each piece of input data.
Any help from your side on this matter will be truly appreciated!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions