diff --git a/examples/detector.c b/examples/detector.c index 326e07f1..754f8f8a 100644 --- a/examples/detector.c +++ b/examples/detector.c @@ -13,7 +13,7 @@ void train_detector(char *datacfg, char *cfgfile, char *weightfile, int *gpus, i char *base = basecfg(cfgfile); printf("%s\n", base); float avg_loss = -1; - network **nets = calloc(ngpus, sizeof(network)); + network **nets = calloc(ngpus, sizeof(network*)); srand(time(0)); int seed = rand();