mirror of https://github.com/AlexeyAB/darknet.git
Added network resizing for SAM layer
This commit is contained in:
parent
a66bc8d6ff
commit
283333b52f
|
@ -541,6 +541,8 @@ int resize_network(network *net, int w, int h)
|
||||||
resize_shortcut_layer(&l, w, h, net);
|
resize_shortcut_layer(&l, w, h, net);
|
||||||
}else if (l.type == SCALE_CHANNELS) {
|
}else if (l.type == SCALE_CHANNELS) {
|
||||||
resize_scale_channels_layer(&l, net);
|
resize_scale_channels_layer(&l, net);
|
||||||
|
}else if (l.type == SAM) {
|
||||||
|
resize_sam_layer(&l, w, h);
|
||||||
}else if (l.type == DROPOUT) {
|
}else if (l.type == DROPOUT) {
|
||||||
resize_dropout_layer(&l, inputs);
|
resize_dropout_layer(&l, inputs);
|
||||||
l.out_w = l.w = w;
|
l.out_w = l.w = w;
|
||||||
|
|
Loading…
Reference in New Issue