Obtain hidden representations of Encoder model #2866
|
Hi, is it possible to obtain the hidden representations of an Encoder model? This was also asked in #606, but apparently unanswered. It seems that it is impossible to do so in speechbrain? I would be open to modifying the code for my personal needs, but having looked at the code I'm not sure how I could let it output the hidden representations as well. |
Answered by
TParcollet
Mar 19, 2025
Replies: 1 comment 3 replies
|
Hi, it is possible. What do you want to extract and where exactly. Some code change may be needed, but it should be light. |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You would have to modify the forward of this class:
speechbrain/speechbrain/lobes/models/ECAPA_TDNN.py
Line 400 in 309130b