Skip to content

Unable to load DLL 'yolo_cpp_dll_gpu' #14

@DrewRidley

Description

@DrewRidley

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @DrewRidley

        Issue actions

          Unable to load DLL 'yolo_cpp_dll_gpu' · Issue #14 · microsoft/Microsoft-Rocket-Video-Analytics-Platform