Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decoder inputs #98

Open
LIIHWF opened this issue Jul 29, 2024 · 1 comment
Open

Decoder inputs #98

LIIHWF opened this issue Jul 29, 2024 · 1 comment

Comments

@LIIHWF
Copy link

LIIHWF commented Jul 29, 2024

Hi,

I have a question regarding the inputs for the Decoder in InterFuser.

hs = self.decoder(self.query_embed.repeat(1, bs, 1), memory, query_pos=tgt)[0]

I noticed that the decoder has three inputs. However, the first input self.query_embed and the third input tgt seem to be irrelevant to the sensor data or other contextual parameters. Do they act as placeholders whose values do not play any role?

I have this question because I found that self.query_embed is the created in __init__ method and assigned randomly by calling reset_parameter. tgt is computed according to self.query_pos_embed, and self.query_pos_embed is created and assigned similarly to self.query_embed.

After self.query_embed and self.query_pos_embed are first randomly assigned, their values do not change during the execution of the Interfuser model.

Did I miss something in the code that is actually changing the values of these inputs?
Otherwise, the randomly assigned values can affect the reproducibility of the autopilot's behavior, which is not desired in many cases.

@deepcs233
Copy link
Collaborator

Hi!
Sorry for the late reply. The query_embed is learnable and it can be updated during training. The tgt variable is the cosine positional encoding and is not learnable. Both two variables act as the positional encoding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants