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

extract transorformer layer feature #74

Open
zbpjlc opened this issue Feb 29, 2024 · 2 comments
Open

extract transorformer layer feature #74

zbpjlc opened this issue Feb 29, 2024 · 2 comments

Comments

@zbpjlc
Copy link

zbpjlc commented Feb 29, 2024

SpeechT5 , how can i extract the fixed transorformer layer feature;
in the hubert paper:
image
so,in the SpeechT5,how can i do,Is there any relevant code ?

@zbpjlc
Copy link
Author

zbpjlc commented Feb 29, 2024

for the second iteration

@Ajyy
Copy link
Collaborator

Ajyy commented Mar 25, 2024

Sorry, we did not provide the scripts but you can modify from here and get the last layer features by passing "feature_only" parameter during forward which will return the feature in here.

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