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

推理的时候爆显存 #5

Open
neverbedalao98 opened this issue Apr 18, 2023 · 1 comment
Open

推理的时候爆显存 #5

neverbedalao98 opened this issue Apr 18, 2023 · 1 comment

Comments

@neverbedalao98
Copy link

我在用你们的预训练权重去推理cityscapes测试集的时候,sample per gpu设置为1,10G的显存还不够用,请问是可能是哪里出了问题?还是单纯的你们的模型需要很大的显存呢?(之前没有遇到过需要这么多显存的模型)

@Jiaqi-Chen-00
Copy link
Collaborator

Jiaqi-Chen-00 commented Jun 9, 2023

We recommend to modify the test_cfg parameter in the config file, using dict(mode='slide', crop_size=(768, 768), stride=(512, 512)), to see if it yields any improvements.
If the GPU memory usage remains high, you can try reducing the crop_size and stride values further to save additional GPU memory.

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