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

With Vision Transformer #7

Open
wangxinghangcnn opened this issue May 8, 2023 · 0 comments
Open

With Vision Transformer #7

wangxinghangcnn opened this issue May 8, 2023 · 0 comments

Comments

@wangxinghangcnn
Copy link

Hello, I seem to have encountered an issue that has been bothering me for two weeks. I would greatly appreciate it if you could reply. During the training process of VIT, I used the Clamelyon16 dataset to predict the presence or absence of cancer, but the accuracy of the training set is often about 10 points higher than that of the validation set. I tried increasing the maxNumBlocks to 1000 or 1500, but the final accuracy compared to the training set was still 7-9 points lower. Since I need to modify the VIT model, I downloaded the official VIT from Github and used the base_32_model, just like you did, with 50% of the weights frozen. However, my model is prone to overfitting, and modifying the drop_path_ratio and drop_ratio did not have a significant effect. In between, I also added cosine annealing learning rate adjustment, and now I don't know where the problem lies.

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

1 participant