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

CPC + Nullspace loading for downstream tasks #8

Merged
merged 3 commits into from Mar 31, 2021

Conversation

jdzikowski
Copy link

This implements cpc adapter for nullspace and loading of a checkpoint with nullspace. Just add --load path/to/checkpoint/with/nullspace --nullspace to your train script and your good to go. Checkoints of CPC_ll6k with nullspace of various sizes can be found under /pio/scratch/1/i273233/linear_separability/cpc/cpc_official_phonemes_nullspace_X/checkpoint_9.pt

@janchorowski
Copy link
Member

I don't understand what's happening here. The model works like that:

  • there is an encoder
  • it is followed by the autoregressive predictor
  • we extract vectors from a middle layer of the autoregressive predictor

but you apply the null-space matrix to the output of the encoder, then feeding the modified values to the autoregressive predictor.

Shouldn't we first extract the features from a layer which works well, then use it to predict the speaker, then multiply it by the nullspace?

@janchorowski janchorowski merged commit 2027965 into master Mar 31, 2021
@janchorowski janchorowski deleted the jdzikowski/nullspace_loading branch March 31, 2021 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants