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

gpu util = 0 while running inference #26

Closed
shulou1996 opened this issue Sep 7, 2022 · 2 comments
Closed

gpu util = 0 while running inference #26

shulou1996 opened this issue Sep 7, 2022 · 2 comments

Comments

@shulou1996
Copy link

Hello, appreciate for your great job!

There is a problem when I run your inference script on ytvis dataset
python3 projects/IDOL/train_net.py --config-file projects/IDOL/configs/XXX.yaml --num-gpus 8 --eval-only MODEL.WEIGHTS /path to my .pth

Everything works well and GPU memory looks normal, but GPU util is always 0.
image

Total infer time is around 2h, I don't know if all gpus are correctly used during inference.

@wjf5203
Copy link
Owner

wjf5203 commented Sep 7, 2022

Hi, thanks for your attention~
Typically, inference on YTVIS only takes a few minutes. Two hours is an abnormal time, so maybe you can check whether the cpu utilization is too high during inference.
If yes, you can set cfg.MODEL.IDOL.MERGE_ON_CPU=True in config file, which will avoid processing data on cpu and speed up inference.

@shulou1996
Copy link
Author

Yes, the default is True and setting it to False can significantly speed up.
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