takuya-takeuchi / DlibDotNet

Dlib .NET wrapper written in C++ and C# for Windows, MacOS, Linux and iOS
MIT License
493 stars 135 forks source link

The entry function 'LossMmod_det_bnet_type_create' is not in DlibDotNetNativeDnn.dll ? #230

Open jeffreyvivian opened 3 years ago

jeffreyvivian commented 3 years ago

There are several functions that are not found in 'DlibDotNetNativeDnn.dll': LossMmod_det_bnet_type_create LossMmod_det_anet_type_create LossMulticlassLogPerPixel_seg_bnet_type_create LossMulticlassLogPerPixel_seg_anet_type_create

code: static NativeMethods() { WindowsLibraryLoader.LoadLibraries(new[] { $"{NativeLibrary}", $"{NativeDnnLibrary}" });

        foreach (var builder in new[] {
            LossMetric_anet_type_create(),
            LossMetric_metric_net_type_create()
        })
            LossMetricRegistry_add(builder);
        foreach (var builder in new[] {
            LossMmod_net_type_create(),
            LossMmod_net_type_1_create(),
            LossMmod_net_type_2_create(),
            LossMmod_net_type_3_create(),
            LossMmod_det_bnet_type_create(),
            LossMmod_det_anet_type_create()
        })
            LossMmodRegistry_add(builder);
        foreach (var builder in new[] {
            LossMulticlassLog_net_type_create(),
             LossMulticlassLog_net_1000_type_create(),
             LossMulticlassLog_anet_1000_type_create(),
             LossMulticlassLog_net_type2_create()
        })
            LossMulticlassLogRegistry_add(builder);
        foreach (var builder in new[] {
            LossMulticlassLogPerPixel_net_type_create(),
            LossMulticlassLogPerPixel_anet_type_create(),
            LossMulticlassLogPerPixel_ubnet_type_create(),
            LossMulticlassLogPerPixel_uanet_type_create(),
            LossMulticlassLogPerPixel_seg_bnet_type_create(),
            LossMulticlassLogPerPixel_seg_anet_type_create()
        })
            LossMulticlassLogPerPixelRegistry_add(builder);
    }

What should I do? Thanks for this mistake.

takuya-takeuchi commented 3 years ago

@jeffreyvivian

The following file could help you. https://github.com/takuya-takeuchi/DlibDotNet/blob/master/src/DlibDotNet.Native.Dnn/dlib/dnn/loss/multiclass_log/template.h