mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
Fixed resizing REORG_OLD layer
This commit is contained in:
@ -86,7 +86,7 @@ void train_detector(char *datacfg, char *cfgfile, char *weightfile, int *gpus, i
|
|||||||
printf("\n Error: You set incorrect value batch=1 for Training! You should set batch=64 subdivision=64 \n");
|
printf("\n Error: You set incorrect value batch=1 for Training! You should set batch=64 subdivision=64 \n");
|
||||||
getchar();
|
getchar();
|
||||||
}
|
}
|
||||||
else if (actual_batch_size < 64) {
|
else if (actual_batch_size < 8) {
|
||||||
printf("\n Warning: You set batch=%d lower than 64! It is recommended to set batch=64 subdivision=64 \n", actual_batch_size);
|
printf("\n Warning: You set batch=%d lower than 64! It is recommended to set batch=64 subdivision=64 \n", actual_batch_size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -523,6 +523,8 @@ int resize_network(network *net, int w, int h)
|
|||||||
resize_upsample_layer(&l, w, h);
|
resize_upsample_layer(&l, w, h);
|
||||||
}else if(l.type == REORG){
|
}else if(l.type == REORG){
|
||||||
resize_reorg_layer(&l, w, h);
|
resize_reorg_layer(&l, w, h);
|
||||||
|
} else if (l.type == REORG_OLD) {
|
||||||
|
resize_reorg_old_layer(&l, w, h);
|
||||||
}else if(l.type == AVGPOOL){
|
}else if(l.type == AVGPOOL){
|
||||||
resize_avgpool_layer(&l, w, h);
|
resize_avgpool_layer(&l, w, h);
|
||||||
}else if(l.type == NORMALIZATION){
|
}else if(l.type == NORMALIZATION){
|
||||||
|
Reference in New Issue
Block a user