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

The distance result changes when I run several times? #60

Closed
imerse opened this issue Jan 19, 2021 · 3 comments
Closed

The distance result changes when I run several times? #60

imerse opened this issue Jan 19, 2021 · 3 comments

Comments

@imerse
Copy link

imerse commented Jan 19, 2021

As the title, I wonder does there have a random process in the flow ? Why the distance changes each time?
And does the forward process take more time on gpu than cpu? I test on v100 gpu with 402ms for the first pair and about 50ms on cpu. Looks strange! Any help will be appreciated! Thanks.

image

@richzhang
Copy link
Owner

Hmm, I'm a little confused wy it's loading a resnet18 model. Were you able to run the example command and get this?

image

@imerse
Copy link
Author

imerse commented Jan 22, 2021

Sorry, I misunderstood the location of the automatically downloaded model. Now the result of each inference is the same, but I still don't understand why the efficiency of running on GPU is not as good as on CPU.

@richzhang
Copy link
Owner

May be that communication dominates when running a single image. Try for a bigger batch of images and see if the trend still holds

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