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

Unable to load DLL 'yolo_cpp_dll_gpu' #14

Open
DrewRidley opened this issue Feb 15, 2021 · 0 comments
Open

Unable to load DLL 'yolo_cpp_dll_gpu' #14

DrewRidley opened this issue Feb 15, 2021 · 0 comments

Comments

@DrewRidley
Copy link

Good morning,

When attempting to add GPU support following the guide given, and installing all of the necessary tools, I get the following error. I copied the dll per the guide into the output directory of my program, so it is alongside the exe.

02:11:28.992 ERR >> [WebServer] [1xgT3lLQekmWySVa4MN5ow] Unhandled exception.
$type : System.TypeInitializationException
TypeName : Program
TargetSite : Void MoveNext()
StackTrace :
at EmbedIO.WebApi.WebApiModuleBase.SerializeResultAsync[TResult](IHttpContext context, Task1 task) at EmbedIO.Routing.RouteResolverBase1.ResolveAsync(IHttpContext context)
at EmbedIO.Routing.RouteResolverCollectionBase2.ResolveAsync(IHttpContext context) at EmbedIO.Routing.RoutingModuleBase.OnRequestAsync(IHttpContext context) at EmbedIO.WebModuleBase.HandleRequestAsync(IHttpContext context) at EmbedIO.ExceptionHandler.Handle(String logSource, IHttpContext context, Exception exception, ExceptionHandlerCallback handler, HttpExceptionHandlerCallback httpHandler) at EmbedIO.WebModuleBase.HandleRequestAsync(IHttpContext context) at EmbedIO.Internal.WebModuleCollection.DispatchRequestAsync(IHttpContext context) at EmbedIO.WebServerBase1.DoHandleContextAsync(IHttpContextImpl context)
Message : The type initializer for 'CaptchaAssasin.Program' threw an exception.
InnerException : object
$type : System.DllNotFoundException
Message :
Unable to load DLL 'yolo_cpp_dll_gpu' or one of its dependencies: The specified module could not be found. (0x8007007E)
TypeName :
TargetSite : Int32 GetDeviceCount()
StackTrace :
at Alturos.Yolo.YoloWrapper.GetDeviceCount()
at Alturos.Yolo.YoloWrapper.Initialize(String configurationFilename, String weightsFilename, String namesFilename, GpuConfig gpuConfig)
at Alturos.Yolo.YoloWrapper..ctor(String configurationFilename, String weightsFilename, String namesFilename, GpuConfig gpuConfig, IYoloSystemValidator yoloSystemValidator)
at CaptchaAssasin.Program..cctor() in C:\Users\Drew\RiderProjects\Test\Program.cs:line 13
Source : Alturos.Yolo
HResult : -2146233052
Source : Program
HResult : -2146233036

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

1 participant