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

Speed To Detect very SLOW #8

Closed
hohoangan opened this issue Apr 14, 2021 · 8 comments
Closed

Speed To Detect very SLOW #8

hohoangan opened this issue Apr 14, 2021 · 8 comments

Comments

@hohoangan
Copy link

First, Thank you for your source, It has helped me a lot.
But speed to detect the object in an image is slow,
How can faster do it such as use GPU or custom list object, Because I need counting vehicle from the camera.
Please help!

@hohoangan hohoangan changed the title Speed verry SLOW Speed To Detect very SLOW Apr 14, 2021
@orielswisa
Copy link

+1

@Transigent
Copy link

This has GPU support:
https://github.com/wang-xinyu/tensorrtx
Some benchmarks at the page end.

@BobLd
Copy link
Owner

BobLd commented Jul 15, 2021

Hi,

There is already an open issue about that here: dotnet/machinelearning#5597 Unfortunatly, and as explained here, this doesn't come from this code but from the ML.Net/Onnx step.

You can use the GPU. If I remember well you will need to use the following package: https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime.Gpu/
I did some tests in the past and it worked, but you might have error messages that are linked to nuget packages conflicts. You will need to uninstall the cpu package.

@BobLd
Copy link
Owner

BobLd commented Jul 17, 2021

Try updating to NL.Net v1.6.0, they have improved image handling and it's much faster.
I've updated the repos with 5cab380

@orielswisa
Copy link

Hi,

There is already an open issue about that here: dotnet/machinelearning#5597 Unfortunatly, and as explained here, this doesn't come from this code but from the ML.Net/Onnx step.

You can use the GPU. If I remember well you will need to use the following package: https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime.Gpu/
I did some tests in the past and it worked, but you might have error messages that are linked to nuget packages conflicts. You will need to uninstall the cpu package.

Hi,

I have nvidia rtx 2080 super i haved try to do that in past but it not work for me,
Are you know which CUDA and cuDNN version i need?

@BobLd
Copy link
Owner

BobLd commented Jul 17, 2021

From this recent article, I see that they use

  • Install CUDA v10.1
  • Install cuDNN v7.6.4 for CUDA 10.1

But I haven't tried yet

@orielswisa
Copy link

Tnx for your answer!
The Model Builder recognized the GPU but how can it help me with your code?

@Eclipi
Copy link

Eclipi commented Sep 10, 2021

I found that the inference speed is a lot faster on .Net Core 5.0 w/o GPU. It took around ~8000ms on .NET Framework 4.7.2 and ~600s on Core.

@BobLd BobLd closed this as completed Nov 20, 2021
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

5 participants