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

Dimension in acoustic transformer #2

Open
mohit2b opened this issue Jan 13, 2023 · 3 comments
Open

Dimension in acoustic transformer #2

mohit2b opened this issue Jan 13, 2023 · 3 comments

Comments

@mohit2b
Copy link

mohit2b commented Jan 13, 2023

Hi, I am trying to run your Trimodal-BART-driver.py file. In it in line 416 I believe the dimension of acoustic input is batch x max_acoustic_len x acoustic_dim. The output returned by self.acoustic_transformer(acoustic_input) is of shape batch x max_acoustic_len x acoustic_dim. So the output of self.acoustic_transformer(acoustic_input)[-1] will be of shape max_acoustic_len x acoustic_dim. And you are passing this output of shape (max_acoustic_len x acoustic_dim) to MAF_layer in line 418. Therefore the dimension of acoustic_context in MAF_layer is (max_acoustic_len x acoustic_dim).

So my question is since the dimension of acoustic_context in MAF_layer is (max_acoustic_len x acoustic_dim) in line 242 it is throwing error. Please help.

@Aeron00
Copy link

Aeron00 commented Mar 22, 2024

Hii, @mohit2b did you able to solve the problem, i am getting the same issue, any help appreciated. Thanks

@mohit2b
Copy link
Author

mohit2b commented Mar 22, 2024

@Aeron00 please check ACL paper link (software), they have different python script for acoustic transformer. (https://aclanthology.org/2022.acl-long.411/)

@Aeron00
Copy link

Aeron00 commented Mar 23, 2024

Thank you😊 @mohit2b i was able to solve the error.

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