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

demo ssd in only cpu inference but no gpu #389

Closed
kuonangzhe opened this issue Oct 14, 2018 · 3 comments
Closed

demo ssd in only cpu inference but no gpu #389

kuonangzhe opened this issue Oct 14, 2018 · 3 comments

Comments

@kuonangzhe
Copy link
Contributor

Thanks for the awesome work!

I just tested the demo_ssd.py on my laptop. I found that the args.gpu for setting ctx was no used in the code actually, and I want to test the gpu speed, so I set '--gpu 0' in args, and get model like follows:

net = gcv.model_zoo.get_model(args.network, pretrained=False, ctx=ctx, pretrained_base=False)
net.load_params(args.pretrained)

The weird thing is that the speed for ssd has no change. In my case, on a GTX 940M, with ssd_512_coco model, the speed for cpu and gpu are both around 2.7 seconds. The time is in average time.

Is there any place that I can check for this? Thanks in advance!

@Angzz
Copy link

Angzz commented Oct 14, 2018

First,the param is —gpus not gpu, please have a check, second, maybe the gpu you use is not powerful, I think the 940 M is too slow to inference.

@zhreshold
Copy link
Member

Fixed in #391

@kuonangzhe
Copy link
Contributor Author

@zhreshold
Thanks a lot!

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

3 participants