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

显存不足 #4

Open
ZHIZIHUABU opened this issue Aug 28, 2023 · 1 comment
Open

显存不足 #4

ZHIZIHUABU opened this issue Aug 28, 2023 · 1 comment

Comments

@ZHIZIHUABU
Copy link

我只有6G的显存,我使用resnet18替换wd_resnet50,并把batch_size调为4,输入是256,但是内存占用仍然过高,有什么办法可以训练吗

@xcyao00
Copy link
Owner

xcyao00 commented Aug 30, 2023

6G显存用于训练基于transformer的网络,确实有点小。建议batch_size设置为1,如果不行就只能使用更小的backbone,或者减少transformer的layer和head数。

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