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

Some questions #1

Closed
Rongjiehuang opened this issue Dec 28, 2021 · 4 comments
Closed

Some questions #1

Rongjiehuang opened this issue Dec 28, 2021 · 4 comments

Comments

@Rongjiehuang
Copy link

Rongjiehuang commented Dec 28, 2021

Hi author, nice implementation! I wonder do we need some pre-trained models for self.emo_model = MinimalClassifier()?
Besides, I get audio samples with speaker identity inconsistent with reference audio.

@b04901014
Copy link
Owner

You won't need the pre-trained model for that explicitly. It should load the pretrained wav2vec2 by facebook from huggingface by default.

@Rongjiehuang
Copy link
Author

Rongjiehuang commented Dec 29, 2021

class MinimalClassifier(pl.LightningModule):
    def __init__(self):
        super().__init__()
        self.wav2vec2 = Wav2vec2Wrapper(pretrain=False)

    def forward(self, x, length=None):
        reps = self.wav2vec2(x, length)
        return reps

As you see, the param pretrain is set to False in default, and I wonder whether it works but not typo?

@b04901014
Copy link
Owner

Sorry for the confusion. I borrowed the module Wav2vec2Wrapper from my another project. And that is that parameter is indicating if that module is used for pretraining or fine-tuning instead of whether it is pretrained or not. During pretraining it will output the masks for calculating the pretraining objective, which is not needed.

@Rongjiehuang
Copy link
Author

Thanks for your clarification.

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