-
How do we obtain the output of an intermediate layer of the pre-trained model? For example, the output at the end of the convolution encoder, or the output just after the transformer encoder layers. |
Beta Was this translation helpful? Give feedback.
Replies: 11 comments
-
We do not provide this feature out of the box |
Beta Was this translation helpful? Give feedback.
-
I am unable to find the code for the model. Sorry, I am new to torch hub and torchscript |
Beta Was this translation helpful? Give feedback.
-
It is public within the jit containers |
Beta Was this translation helpful? Give feedback.
-
I am sorry, as I said, I do not know about JIT containers...can you paste any link here, please? Thank you so much for the quick replies! |
Beta Was this translation helpful? Give feedback.
-
This one for example - https://github.com/snakers4/silero-models/blob/master/models.yml#L9 |
Beta Was this translation helpful? Give feedback.
-
Adding a model with skip connections may be a good idea for a v3 |
Beta Was this translation helpful? Give feedback.
-
Loading the model using
How can I get the "non-jit" style code? |
Beta Was this translation helpful? Give feedback.
-
We have not published the original code of our models for a number of reasons |
Beta Was this translation helpful? Give feedback.
-
Okay. So, how can I modify the above non-human readable code to return at a specific point in the forward pass? I just want to return the output before the FC layer. |
Beta Was this translation helpful? Give feedback.
-
these models were not really meant to be modified |
Beta Was this translation helpful? Give feedback.
-
Can you please let me know how to get the previous layer's output, just before FC? I want the output from the decoder, i.e, when I call model(input), I want the model to return the decoder's output instead of softmax probabilities. |
Beta Was this translation helpful? Give feedback.
We have not published the original code of our models for a number of reasons
More human readable code can be found just inside of jit containers (they are just pickled zips or vice versa)