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

Loss can't drop #12

Closed
QiushiYang opened this issue Jan 13, 2021 · 2 comments
Closed

Loss can't drop #12

QiushiYang opened this issue Jan 13, 2021 · 2 comments

Comments

@QiushiYang
Copy link

Thank you so much for sharing your codes. I try to employ Vit as the encoder and follow a common decoder to build a segmentation network. I train it from scratch but found the loss can't drop since the beginning of training, and the results keep near 0. Is there any trick for training Vit correctly? Is it very important to load the pre-train model to fine-tune?
Here is my configuration:
patch_size=16 hidden_size=16*16*3 mlp_dim = 3072 dropout_rate = 0.1 num_heads = 12 num_layers = 12 lr=3e-4 opt=Adam weight_decay=0.0

@jeonsworld
Copy link
Owner

Hyperparameter in pre-train and fine-tuning have different settings.
Also, if you are running the scratch train, you need to decide on the hyperparameter that fits it.
Hyperparameters for pre-train and fine-tuning can be found in the paper.

@QiushiYang
Copy link
Author

Thanks a lot for your reply. It was a coding bug and I have fixed the problems. Many thanks.

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