Minor fixes

This commit is contained in:
AlexeyAB 2019-12-06 03:46:34 +03:00
parent aaba21bdd3
commit ebf1d7a73b
1 changed files with 10 additions and 2 deletions

View File

@ -209,14 +209,22 @@ void train_classifier(char *datacfg, char *cfgfile, char *weightfile, int *gpus,
destroy_all_windows_cv();
#endif
free_network(net);
free_ptrs((void**)labels, classes);
pthread_join(load_thread, 0);
free_data(buffer);
//free_network(net);
for (i = 0; i < ngpus; ++i) free_network(nets[i]);
free(nets);
//free_ptrs((void**)labels, classes);
free(labels);
free_ptrs((void**)paths, plist->size);
free_list(plist);
free(base);
free_list_contents_kvp(options);
free_list(options);
}