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

A question about pretrained model #35

Closed
galaxyWisdom opened this issue Nov 29, 2021 · 2 comments
Closed

A question about pretrained model #35

galaxyWisdom opened this issue Nov 29, 2021 · 2 comments

Comments

@galaxyWisdom
Copy link

hi, I have a question that if I want to extract the feature in pretrained model,should I only to inference the encoder with all mask=0?

@pengzhiliang
Copy link
Owner

It's a good question, and I will test it later.

@pengzhiliang
Copy link
Owner

I have test it. You can set the --mask_ratio=0. in the command.
But you will get an ERROR when model calculates the mse loss.
To avoid it, you can add a evaluate_one_epoch fuction in engine_for_pretraining.py to extract the feature of pretrained model. And maybe def evaluate(data_loader, model, device) can help you.

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