MCPcopy Create free account
hub / github.com/AllentDan/LibtorchSegmentation / encoder_params

Function encoder_params

src/utils/util.cpp:48–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46
47
48nlohmann::json encoder_params() {
49 nlohmann::json params = {
50 {"resnet18", {
51 {"class_type", "resnet"},
52 {"out_channels", {3, 64, 64, 128, 256, 512}},
53 {"layers" , {2, 2, 2, 2}},
54 },
55 },
56 {"resnet34", {
57 {"class_type", "resnet"},
58 {"out_channels", {3, 64, 64, 128, 256, 512}},
59 {"layers" , {3, 4, 6, 3}},
60 },
61 },
62 {"resnet50", {
63 {"class_type", "resnet"},
64 {"out_channels", {3, 64, 256, 512, 1024, 2048}},
65 {"layers" , {3, 4, 6, 3}},
66 },
67 },
68 {"resnet101", {
69 {"class_type", "resnet"},
70 {"out_channels", {3, 64, 256, 512, 1024, 2048}},
71 {"layers" , {3, 4, 23, 3}},
72 },
73 },
74 {"resnet101", {
75 {"class_type", "resnet"},
76 {"out_channels", {3, 64, 256, 512, 1024, 2048}},
77 {"layers" , {3, 8, 36, 3}},
78 },
79 },
80 {"resnext50_32x4d", {
81 {"class_type", "resnet"},
82 {"out_channels", {3, 64, 256, 512, 1024, 2048}},
83 {"layers" , {3, 4, 6, 3}},
84 },
85 },
86 {"resnext101_32x8d", {
87 {"class_type", "resnet"},
88 {"out_channels", {3, 64, 256, 512, 1024, 2048}},
89 {"layers" , {3, 4, 23, 3}},
90 },
91 },
92 {"vgg11", {
93 {"class_type", "vgg"},
94 {"out_channels", {64, 128, 256, 512, 512, 512}},
95 {"cfg",{64, -1, 128, -1, 256, 256, -1, 512, 512, -1, 512, 512, -1}},
96 {"batch_norm" , false},
97 },
98 },
99 {"vgg11_bn", {
100 {"class_type", "vgg"},
101 {"out_channels", {64, 128, 256, 512, 512, 512}},
102 {"cfg",{64, -1, 128, -1, 256, 256, -1, 512, 512, -1, 512, 512, -1}},
103 {"batch_norm" , true},
104 },
105 },

Callers 7

FPNImplMethod · 0.85
DeepLabV3ImplMethod · 0.85
DeepLabV3PlusImplMethod · 0.85
PANImplMethod · 0.85
UNetImplMethod · 0.85
LinkNetImplMethod · 0.85
PSPNetImplMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected