diff --git a/src/classifier.c b/src/classifier.c index b0778d0a..cc90edcf 100644 --- a/src/classifier.c +++ b/src/classifier.c @@ -862,7 +862,7 @@ void predict_classifier(char *datacfg, char *cfgfile, char *weightfile, char *fi if(net.hierarchy) printf("%d, %s: %f, parent: %s \n",index, names[index], predictions[index], (net.hierarchy->parent[index] >= 0) ? names[net.hierarchy->parent[index]] : "Root"); else printf("%s: %f\n",names[index], predictions[index]); } - if(r.data != im.data) free_image(r); + free_image(r); free_image(im); free_image(resized); if (filename) break;